diff --git a/src/core/core.c b/src/core/core.c index 8c60f21..9730afc 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -32,6 +32,6 @@ #define STB_SPRINTF_IMPLEMENTATION #include "stb_sprintf.h" #include "core_string.c" -#include "log.c" +#include "core_log.c" #include "core_lexer.c" #include "core_type_info.c" \ No newline at end of file diff --git a/src/core/core.h b/src/core/core.h index 5ca991b..71d67f3 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -9,4 +9,5 @@ #include "core_lexer.h" #include "core_math.h" #include "core_intrin.h" -#include "core_type_info.h" \ No newline at end of file +#include "core_type_info.h" +#include "core_log.h" \ No newline at end of file diff --git a/src/core/core_defines.h b/src/core/core_defines.h index 0833d62..d6e164a 100644 --- a/src/core/core_defines.h +++ b/src/core/core_defines.h @@ -230,6 +230,3 @@ typedef double f64; } while (0) #define DLLS_REMOVE(first, node) DLLS_REMOVE_MOD(first, node, next, prev) -void debugf(const char *string, ...); -void panicf(const char *string, ...); - diff --git a/src/core/log.c b/src/core/core_log.c similarity index 100% rename from src/core/log.c rename to src/core/core_log.c diff --git a/src/core/core_log.h b/src/core/core_log.h new file mode 100644 index 0000000..a5a2b7f --- /dev/null +++ b/src/core/core_log.h @@ -0,0 +1,12 @@ +/* +** [ ] investigate: how to design api! (minimal platform code) +** [ ] ryan and allen do some kind of log data structure, is that worth anything? +** [ ] how programming languages do it? +** [ ] probably want to log stuff without it being in my face all the time +** [ ] want to warn user without quiting with option of silencing +** (use case: lexing error but don't care) +** [ ] wasm doesn't handle console logging without new line XD +*/ +void debugf(const char *string, ...); +void debugexf(const char *string, ...); +void panicf(const char *string, ...);