Merge pull request #3896 from odin-lang/cached-builds

Internal Cached Builds
This commit is contained in:
gingerBill
2024-07-09 15:27:45 +01:00
committed by GitHub
8 changed files with 530 additions and 18 deletions

View File

@@ -88,6 +88,13 @@ gb_internal char *alloc_cstring(gbAllocator a, String s) {
return c_str;
}
gb_internal wchar_t *alloc_wstring(gbAllocator a, String16 s) {
wchar_t *c_str = gb_alloc_array(a, wchar_t, s.len+1);
gb_memmove(c_str, s.text, s.len*2);
c_str[s.len] = '\0';
return c_str;
}
gb_internal gb_inline bool str_eq_ignore_case(String const &a, String const &b) {
if (a.len == b.len) {