1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-07 08:14:58 +03:00

Merge PR #735: Debug flag and test mode improvements

This commit is contained in:
Davide Beatrici
2018-10-08 21:00:44 +02:00
committed by GitHub
8 changed files with 48 additions and 18 deletions

View File

@ -783,8 +783,11 @@ UINT SWExec()
MayaquaMinimalMode();
}
#ifdef DEBUG
InitMayaqua(true, true, 0, NULL);
#if defined(_DEBUG) || defined(DEBUG) // In VC++ compilers, the macro is "_DEBUG", not "DEBUG".
// If set memcheck = true, the program will be vitally slow since it will log all malloc() / realloc() / free() calls to find the cause of memory leak.
// For normal debug we set memcheck = false.
// Please set memcheck = true if you want to test the cause of memory leaks.
InitMayaqua(false, true, 0, NULL);
#else
InitMayaqua(false, false, 0, NULL);
#endif