diff options
Diffstat (limited to 'src/libui_sdl/libui/common/debug.c')
-rw-r--r-- | src/libui_sdl/libui/common/debug.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/libui_sdl/libui/common/debug.c b/src/libui_sdl/libui/common/debug.c new file mode 100644 index 0000000..97280b4 --- /dev/null +++ b/src/libui_sdl/libui/common/debug.c @@ -0,0 +1,21 @@ +// 13 may 2016 +#include "../ui.h" +#include "uipriv.h" + +void _implbug(const char *file, const char *line, const char *func, const char *format, ...) +{ + va_list ap; + + va_start(ap, format); + realbug(file, line, func, "POSSIBLE IMPLEMENTATION BUG; CONTACT ANDLABS:\n", format, ap); + va_end(ap); +} + +void _userbug(const char *file, const char *line, const char *func, const char *format, ...) +{ + va_list ap; + + va_start(ap, format); + realbug(file, line, func, "You have a bug: ", format, ap); + va_end(ap); +} |