mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Implement debug_printf() in the Emscripten front end, since that's the
easiest way to call js_debug with formatted parameters. [originally from svn r9807]
This commit is contained in:
10
emcc.c
10
emcc.c
@ -138,6 +138,16 @@ void fatal(char *fmt, ...)
|
|||||||
js_error_box(buf);
|
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.
|
* HTMLish names for the colours allocated by the puzzle.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user