24 void bb_assert(
const char *expr,
const char *file,
int line,
const char *msg, ...);
37 # define BB_ASSERT(expr, msg, ...) \
38 if (!(expr)) { bb_assert(#expr, __FILE__, __LINE__, (msg), ##__VA_ARGS__); }
40 # define BB_ASSERT(expr, msg, ...)
143 #ifdef BB_ENABLE_HELPER
147 typedef struct bb_debugscope_s
154 #endif // BB_ENABLE_HELPER
174 extern void (*bbOnDebugStop)();
175 extern void (*bbOnDebugLog)(
BBString *msg);
176 extern void (*bbOnDebugEnterStm)(
BBDebugStm *stm);
177 extern void (*bbOnDebugEnterScope)(
BBDebugScope *scope,
void *inst);
178 extern void (*bbOnDebugLeaveScope)();
179 extern void (*bbOnDebugPushExState)();
180 extern void (*bbOnDebugPopExState)();
181 extern void (*bbOnDebugUnhandledEx)(
BBObject *ex);
184 #ifndef BB_DISABLE_DEPRECATED
186 extern void bbCAssertEx();
189 # define bbassert(expr) if (!(expr)) { bbCAssertEx(); }
191 # define bbassert(expr)
194 #endif // !BB_DISABLE_DEPRECATED
198 #endif // BLITZ_DEBUG_H