File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,20 +45,32 @@ prv_game_manager_create(struct te_window* window) {
4545 prv_debug_drawer_init (game_manager -> renderer );
4646#endif
4747
48+ // Log some info.
49+ log_info ("state:" );
50+
4851#if defined(ENGINE_ASAN_ENABLED )
49- log_info ("AddressSanitizer (ASan) is enabled, expect increased RAM usage!" );
52+ log_info ("- AddressSanitizer (ASan) is enabled, expect increased RAM usage!" );
5053#endif
5154
5255#if defined(DEBUG )
53- log_info ("DEBUG macro is defined, running debug build" );
56+ log_info ("- DEBUG is defined, running debug build" );
5457#else
55- log_info ("DEBUG macro is NOT defined, running release build" );
58+ log_info ("- DEBUG is NOT defined, running release build" );
5659#endif
5760
5861#if defined(ENGINE_DEBUG_TOOLS )
59- log_info ("ENGINE_DEBUG_TOOLS macro is defined, debug tools are enabled" );
62+ log_info ("- ENGINE_DEBUG_TOOLS is defined, debug tools are enabled" );
63+ #else
64+ log_info ("- ENGINE_DEBUG_TOOLS is NOT defined" );
65+ #endif
66+
67+ #if defined(ENGINE_MEMCHECK_ENABLED )
68+ #if !defined(DEBUG )
69+ #error "memcheck should be disabled in release builds"
70+ #endif
71+ log_info ("- ENGINE_MEMCHECK_ENABLED is defined, memcheck enabled" );
6072#else
61- log_info ("ENGINE_DEBUG_TOOLS macro is NOT defined" );
73+ log_info ("- ENGINE_MEMCHECK_ENABLED is NOT defined" );
6274#endif
6375
6476 return game_manager ;
You can’t perform that action at this time.
0 commit comments