mirror of
https://github.com/Alukym/VMProtect-Source.git
synced 2025-06-17 00:57:59 -05:00
Initial commit
This commit is contained in:
26
win_runtime.Tests/main.cc
Normal file
26
win_runtime.Tests/main.cc
Normal file
@ -0,0 +1,26 @@
|
||||
#ifdef WIN
|
||||
#include <crtdbg.h> /* Heap verifying */
|
||||
#elif MACOSX
|
||||
#define __ICONS__
|
||||
#include <Cocoa/Cocoa.h>
|
||||
#endif
|
||||
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
#ifdef WIN
|
||||
/* Set up heap verifying. */
|
||||
_CrtSetDbgFlag(_CrtSetDbgFlag( _CRTDBG_REPORT_FLAG ) | _CRTDBG_LEAK_CHECK_DF);
|
||||
#elif MACOSX
|
||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||
#endif
|
||||
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
int rc = RUN_ALL_TESTS();
|
||||
|
||||
#ifdef MACOSX
|
||||
[pool release];
|
||||
#endif
|
||||
|
||||
return rc;
|
||||
}
|
Reference in New Issue
Block a user