- bt_cvar_set("developer", ftos(dev)); \
- bt_cvar_set("prvm_backtraceforwarnings", ftos(war)); \
- } MACRO_END
+ cvar_set("developer", ftos(dev)); \
+ cvar_set("prvm_backtraceforwarnings", ftos(war)); \
+ MACRO_END
+
+void print_assertfailed_severe(string expr)
+{
+ // this is inside a function to avoid expanding it on compilation everytime
+ LOG_SEVERE("assertion failed: `", expr, "`\n");
+}
+
+void print_assertfailed_fatal(string expr)
+{
+ // this is inside a function to avoid expanding it on compilation everytime
+ LOG_FATAL("assertion failed: `", expr, "`\n");
+}