-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestSeparateYaml.cpp
More file actions
executable file
·58 lines (45 loc) · 1.46 KB
/
Copy pathTestSeparateYaml.cpp
File metadata and controls
executable file
·58 lines (45 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//#include "ssLogger/ssLogInit.hpp"
#define ssLOG_DLL 1
#include "ssLogger/ssLog.hpp"
#include "System2.hpp"
#if defined(__GNUC__)
#include "AnotherSourceFileGcc.hpp"
#endif
#if defined(_MSC_VER)
#include "AnotherSourceFileMSVC.hpp"
#endif
#include <iostream>
#include <chrono>
int main(int argc, char* argv[])
{
std::cout << "Hello World" << std::endl;
std::cout << TEST_DEF << std::endl;
System2CommandInfo commandInfo = {};
int returnCode = 0;
#if defined(_WIN32)
System2CppRun("dir", commandInfo);
#else
auto re = System2CppRun("ls -lah", commandInfo);
#endif
System2CppGetCommandReturnValueSync(commandInfo, returnCode, false);
for(int i = 0; i < argc; ++i)
std::cout << "Arg" << i << ": " << argv[i] << std::endl;
#if ssLOG_USE_SOURCE
ssLOG_LINE("Source dependency is working!!!");
#else
ssLOG_LINE("Header only dependency is working!!!");
#endif
ssLOG_LINE("Multi source file is working: " << TestFunc());
int CheckCounter = 5;
ssLOG_FATAL("Test fatal: " << CheckCounter);
ssLOG_ERROR("Test error: " << CheckCounter);
ssLOG_WARNING("Test warning: " << CheckCounter);
ssLOG_INFO("Test info: " << CheckCounter);
ssLOG_DEBUG("Test debug: " << CheckCounter);
for(int i = 0; i < 100; ++i)
{
ssLOG_LINE("Logging test: " << i);
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
return 0;
}