Fix color codes
This commit is contained in:
@@ -82,7 +82,7 @@ static void compiler_error(Token *token1, Token *token2, const char *str, ...) {
|
||||
STRING_FMT(pctx->perm, str, string);
|
||||
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, pctx->color_codes_enabled);
|
||||
String str = core_stringify_message(pctx, pctx->perm, msg, GLOBAL_EnabledConsoleColors);
|
||||
printf("%s", str.str); // @! How to get rid of printf ?
|
||||
fflush(stdout);
|
||||
Breakpoint;
|
||||
@@ -94,7 +94,7 @@ compiler_error(Token *token, const char *str, ...) {
|
||||
STRING_FMT(pctx->perm, str, string);
|
||||
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, pctx->color_codes_enabled);
|
||||
String str = core_stringify_message(pctx, pctx->perm, msg, GLOBAL_EnabledConsoleColors);
|
||||
printf("%s", str.str); // @! How to get rid of printf ?
|
||||
fflush(stdout);
|
||||
Breakpoint;
|
||||
|
||||
Reference in New Issue
Block a user