aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emcc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/emcc.c b/emcc.c
index 9badcc9..e3bcbf5 100644
--- a/emcc.c
+++ b/emcc.c
@@ -138,6 +138,16 @@ void fatal(char *fmt, ...)
js_error_box(buf);
}
+void debug_printf(char *fmt, ...)
+{
+ char buf[512];
+ va_list ap;
+ va_start(ap, fmt);
+ vsnprintf(buf, sizeof(buf), fmt, ap);
+ va_end(ap);
+ js_debug(buf);
+}
+
/*
* HTMLish names for the colours allocated by the puzzle.
*/