-
-
Notifications
You must be signed in to change notification settings - Fork 256
Expand file tree
/
Copy pathMainTests.cpp
More file actions
19 lines (16 loc) · 578 Bytes
/
MainTests.cpp
File metadata and controls
19 lines (16 loc) · 578 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#define CATCH_CONFIG_RUNNER
#include "Catch.hpp"
#include <iostream>
#include "polyhook2/ErrorLog.hpp"
int main(int argc, char* const argv[]) {
#if defined(POLYHOOK2_OS_WINDOWS) && !defined(__GNUC__)
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_ALWAYS_DF );
#endif
std::cout << "Welcome to PolyHook -By- Stevemk14ebr" << std::endl;
auto logger = std::make_shared<PLH::ErrorLog>();
logger->setLogLevel(PLH::ErrorLevel::INFO);
PLH::Log::registerLogger(logger);
int result = Catch::Session().run(argc, argv);
// getchar();
return result;
}