Cleanup string format. Using stage_arena
This commit is contained in:
@@ -191,6 +191,16 @@ struct Core_Ctx {
|
||||
assert(string.len > 0);
|
||||
return intern_string(&interns, string);
|
||||
}
|
||||
|
||||
Intern_String internf(char *str, ...) {
|
||||
STRING_FMT(this->stage_arena, str, result);
|
||||
return intern_string(&interns, result);
|
||||
}
|
||||
|
||||
String fmt(char *str, ...) {
|
||||
STRING_FMT(this->stage_arena, str, result);
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
CORE_Static String compile_to_c_code();
|
||||
|
||||
Reference in New Issue
Block a user