add documentation for tracking tools; rename with prefix MI_TRACK_tool

This commit is contained in:
Daan Leijen 2023-03-06 09:02:38 -08:00
parent 64fb009695
commit 2e6ab0f230
7 changed files with 104 additions and 52 deletions

View file

@ -309,7 +309,7 @@ bool check_zero_init(uint8_t* p, size_t size) {
#if MI_DEBUG >= 2
bool check_debug_fill_uninit(uint8_t* p, size_t size) {
#if MI_VALGRIND
#if MI_TRACK_VALGRIND
(void)p; (void)size;
return true; // when compiled with valgrind we don't init on purpose
#else
@ -325,7 +325,7 @@ bool check_debug_fill_uninit(uint8_t* p, size_t size) {
}
bool check_debug_fill_freed(uint8_t* p, size_t size) {
#if MI_VALGRIND
#if MI_TRACK_VALGRIND
(void)p; (void)size;
return true; // when compiled with valgrind we don't fill on purpose
#else

View file

@ -12,7 +12,7 @@ terms of the MIT license. A copy of the license can be found in the file
Compile in an "out/debug" folder:
> cd out/debug
> cmake ../.. -DMI_VALGRIND=1
> cmake ../.. -DMI_TRACK_VALGRIND=1
> make -j8
and then compile this file as:
@ -29,7 +29,7 @@ terms of the MIT license. A copy of the license can be found in the file
Compile in an "out/debug" folder:
> cd out/debug
> cmake ../.. -DMI_ASAN=1
> cmake ../.. -DMI_TRACK_ASAN=1
> make -j8
and then compile this file as: