8. Conditional Compilation
8.1 Debug Builds
/* In d3tui_config.h */
#ifdef DEBUG
#define D3TUI_DEBUG 1
#define D3TUI_LOG_LEVEL D3TUI_LOG_DEBUG
#define D3TUI_MEM_TRACKING 1
#define D3TUI_ASSERTIONS 1
#else
#define D3TUI_DEBUG 0
#define D3TUI_LOG_LEVEL D3TUI_LOG_ERROR
#define D3TUI_MEM_TRACKING 0
#define D3TUI_ASSERTIONS 0
#endif
/* In code */
#if D3TUI_DEBUG
d3tui_debug_init(D3TUI_LOG_LEVEL);
d3tui_mem_tracking_init();
d3tui_profiler_init();
#endif