diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-30 06:41:04 +1100 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-30 06:41:04 +1100 |
| commit | 253db94f5a26820673a6ab3901093466f057b19e (patch) | |
| tree | 733d9ef552695a29dbc11cce31a78ae8e21285af | |
| parent | 2f20883eb807b4c0952c8c1fda28546c6120a339 (diff) | |
feat(dbg): Remove message formatting (temp)
| -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 |
