aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/libui/unix/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libui_sdl/libui/unix/debug.c')
-rw-r--r--src/libui_sdl/libui/unix/debug.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libui_sdl/libui/unix/debug.c b/src/libui_sdl/libui/unix/debug.c
new file mode 100644
index 0000000..c948db6
--- /dev/null
+++ b/src/libui_sdl/libui/unix/debug.c
@@ -0,0 +1,14 @@
+// 13 may 2016
+#include "uipriv_unix.h"
+
+// LONGTERM don't halt on release builds
+
+void realbug(const char *file, const char *line, const char *func, const char *prefix, const char *format, va_list ap)
+{
+ char *a, *b;
+
+ a = g_strdup_printf("[libui] %s:%s:%s() %s", file, line, func, prefix);
+ b = g_strdup_vprintf(format, ap);
+ g_critical("%s%s", a, b);
+ G_BREAKPOINT();
+}