force a stack track
#define __ERROR(fmt, ...) fprintf(D_OUT, D_FMT_PREFIX "ERROR:\t"fmt"\n%s", D_FMT_ARGS, __VA_ARGS__)
+#ifdef __stensal__
+#define ERROR(...) \
+ do { \
+ __ERROR(__VA_ARGS__, ""); \
+ char * p = 0; *p = 0; \
+ } while (0)
+#else
#define ERROR(...) \
do { \
__ERROR(__VA_ARGS__, ""); \
abort(); \
} while (0)
+#endif
/* minimalistic error message */
#define ERROR_MIN(err_macro) ERROR("%d %s", err_macro, #err_macro)
/* assert with diagnose string */
