diff options
| -rw-r--r-- | include/tinyff/dbg.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/tinyff/dbg.h b/include/tinyff/dbg.h index 3871c2b..3fac931 100644 --- a/include/tinyff/dbg.h +++ b/include/tinyff/dbg.h @@ -10,17 +10,17 @@ #define FF_DEBUG_ENABLED 1 -#include <stdio.h> -#include <stdarg.h> #include <tinyff/result.h> #include <tinyff/common.h> +#include <tinyff/stream.h> // Sets the debug stream. If stream is NULL, debug is disabled. -ff_result ff_set_debug_stream(FILE *stream); +ff_result ff_set_debug_stream(ff_stream* stream, ff_ctx* ctx); // Prints a string to the debug stream if debug is enabled. -// The call formatting is the same as printf -ff_result ff_dprintf(const char *format, ...); +// Note: I removed stdarg. That crap nearly made me kill myself. +// 0/10, would not recommend. Jokes on you though, I don't have a soul to kill. +ff_result ff_dprintf(ff_ctx* ctx, const char *msg); #endif
\ No newline at end of file |
