Added MSVC debugging tool, discovered globals feature

This commit is contained in:
2023-03-03 17:20:56 +11:00
parent f9d0a27408
commit 08ce7b5536
4 changed files with 41 additions and 25 deletions

View File

@@ -7,6 +7,12 @@
#include "lib_runner.h"
int main(int argc, char* argv[]) {
//debugging tools
#ifdef _DEBUG
// Memory Leak Detection during Debug Builds (MSVC only)
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif//win32 && debug
//the drive system uses a LiteralDictionary, which must be initialized with this
Toy_initDriveDictionary();