File tree Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -24,22 +24,22 @@ int run(Engine* const engine);
24
24
} // namespace ver
25
25
} // namespace ts
26
26
27
- #define TS_MAIN () \
28
- int main () \
29
- { \
30
- try \
31
- { \
32
- auto result = ts::run (new Game ); \
33
- if (result != ts::TS_SUCCESS) \
34
- { \
35
- return result; \
36
- } \
37
- } \
38
- catch (const std::exception& e) \
39
- { \
40
- std::cerr << e.what () << " \n " ; \
41
- return EXIT_FAILURE; \
42
- } \
43
- \
44
- return EXIT_SUCCESS; \
27
+ #define TS_MAIN (gameClass ) \
28
+ int main () \
29
+ { \
30
+ try \
31
+ { \
32
+ auto result = ts::run (new gameClass ); \
33
+ if (result != ts::TS_SUCCESS) \
34
+ { \
35
+ return result; \
36
+ } \
37
+ } \
38
+ catch (const std::exception& e) \
39
+ { \
40
+ std::cerr << e.what () << " \n " ; \
41
+ return EXIT_FAILURE; \
42
+ } \
43
+ \
44
+ return EXIT_SUCCESS; \
45
45
}
Original file line number Diff line number Diff line change @@ -79,4 +79,4 @@ void Game::close()
79
79
TS_LOG (" Thanks for playing!" );
80
80
}
81
81
82
- TS_MAIN ()
82
+ TS_MAIN (Game )
You can’t perform that action at this time.
0 commit comments