mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
Merge PR #748: hamcorebuilder.c: check for "_DEBUG" macro and don't enable memcheck
This commit is contained in:
commit
081db26359
@ -136,8 +136,12 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
MayaquaMinimalMode();
|
MayaquaMinimalMode();
|
||||||
#ifdef DEBUG
|
|
||||||
InitMayaqua(true, true, argc, argv);
|
#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, argc, argv);
|
||||||
#else
|
#else
|
||||||
InitMayaqua(false, false, argc, argv);
|
InitMayaqua(false, false, argc, argv);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user