11 #ifdef TB_RUNTIME_DEBUG_INFO
12 #define TB_IF_DEBUG(debug) debug
14 #define TB_IF_DEBUG(debug)
19 #ifdef TB_RUNTIME_DEBUG_INFO
38 RENDER_SKIN_BITMAP_FRAGMENTS,
41 RENDER_FONT_BITMAP_FRAGMENTS,
45 long settings[NUM_SETTINGS];
48 extern TBDebugInfo g_tb_debug;
51 void ShowDebugInfoSettingsWindow(
class TBWidget *root);
53 #define TB_DEBUG_SETTING(setting) g_tb_debug.settings[TBDebugInfo::setting]
54 #define TB_IF_DEBUG_SETTING(setting, code) if (TB_DEBUG_SETTING(setting)) { code; }
56 #else // TB_RUNTIME_DEBUG_INFO
59 #define ShowDebugInfoSettingsWindow(root) ((void)0)
61 #define TB_DEBUG_SETTING(setting) false
62 #define TB_IF_DEBUG_SETTING(setting, code)
64 #endif // TB_RUNTIME_DEBUG_INFO
68 #if defined(TB_RUNTIME_DEBUG_INFO)
70 namespace tb {
class TBStr; }
72 #define TBDebugPrint(...) do { \
74 tmpxxx.SetFormatted(__VA_ARGS__); \
80 #define TBDebugOut(str) do { } while (0)
81 #define TBDebugPrint(...) do { } while (0)
83 #endif // TB_RUNTIME_DEBUG_INFO
TBStr is a simple string class.
Definition: tb_str.h:62