Core: match sizeof etc. syntax with C, Core RTS: Beautifying + animations

This commit is contained in:
Krzosa Karol
2023-04-19 12:50:58 +02:00
parent 891221441e
commit 87657a99a6
20 changed files with 131 additions and 56 deletions

View File

@@ -83,7 +83,7 @@ static void compiler_error(Token *token1, Token *token2, const char *str, ...) {
Core_Message *msg = core_add_message(CORE_ERROR, string, token1, token2);
if (pctx->debugger_break_on_compiler_error) {
String str = core_stringify_message(pctx, pctx->perm, msg, GLOBAL_EnabledConsoleColors);
printf("%s", str.str); // @! How to get rid of printf ?
printf("%s\n", str.str); // @! How to get rid of printf ?
fflush(stdout);
Breakpoint;
}
@@ -95,7 +95,7 @@ compiler_error(Token *token, const char *str, ...) {
Core_Message *msg = core_add_message(CORE_ERROR, string, token);
if (pctx->debugger_break_on_compiler_error) {
String str = core_stringify_message(pctx, pctx->perm, msg, GLOBAL_EnabledConsoleColors);
printf("%s", str.str); // @! How to get rid of printf ?
printf("%s\n", str.str); // @! How to get rid of printf ?
fflush(stdout);
Breakpoint;
}