diff options
| -rw-r--r-- | include/tinyff/dbg.h | 4 | ||||
| -rw-r--r-- | src/dbg.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/tinyff/dbg.h b/include/tinyff/dbg.h index d109534..be5e04e 100644 --- a/include/tinyff/dbg.h +++ b/include/tinyff/dbg.h @@ -15,11 +15,11 @@ #include <tinyff/result.h> #include <tinyff/common.h> -static FILE *intff_debug_stream = NULL; +extern FILE *intff_debug_stream; // This flag is the same name as FF_DEBUG_ENABLED but is local to this file // Thats why it has the int prefix -static ff_flag intff_debug_enabled = 0; +extern ff_flag intff_debug_enabled; // Sets the debug stream. If stream is NULL, debug is disabled. ff_result ff_set_debug_stream(FILE *stream); @@ -1,5 +1,8 @@ #include <tinyff/dbg.h> +FILE *intff_debug_stream = NULL; +ff_flag intff_debug_enabled = 0; + ff_result ff_set_debug_stream(FILE *stream) { intff_debug_stream = stream; |
