diff --git a/imgui_test_suite/imgui_test_suite.cpp b/imgui_test_suite/imgui_test_suite.cpp index c395076..e0e9629 100644 --- a/imgui_test_suite/imgui_test_suite.cpp +++ b/imgui_test_suite/imgui_test_suite.cpp @@ -31,7 +31,7 @@ // Includes & Compiler Stuff //------------------------------------------------------------------------- -// See DebugCrtInit() call to break on a specific alloc +// [Windows] See DebugCrtInit() call in main() to debug/break on a specific alloc #ifdef _WIN32 #define DEBUG_CRT #define _CRTDBG_MAP_ALLOC @@ -69,6 +69,7 @@ // Allocators //------------------------------------------------------------------------- +// [Windows] See DebugCrtInit() call in main() to debug/break on a specific alloc static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); return malloc(size); } static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); free(ptr); } @@ -389,7 +390,7 @@ static inline void DebugCrtDumpLeaks() int main(int argc, char** argv) { #ifdef DEBUG_CRT - DebugCrtInit(0); + DebugCrtInit(0); // <-- Insert allocation # here to debug break #endif TestSuiteApp GAppInstance;