Codegen multiple line strings

This commit is contained in:
Krzosa Karol
2022-09-30 16:05:19 +02:00
parent b17027f431
commit b1d05bc203
6 changed files with 25 additions and 13 deletions

View File

@@ -806,7 +806,7 @@ thread_ctx_init(){
function void
handle_log_message(Log_Kind kind, int line, const char *file, const char *str, ...){
if(kind == Log_Kind_Trace) return;
Scratch scratch;
STRING_FMT(scratch, str, message);
if(thread_ctx.log_proc) thread_ctx.log_proc(kind, message, (char *)file, line);
@@ -1479,4 +1479,3 @@ template<class T>
bool should_we_continue(List_Iter<T> *iter){
return iter->item != 0;
}