diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-31 01:08:17 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-31 01:08:17 +0000 |
| commit | 9a5216921ca44fe25e66c81928f812f13f2d59e0 (patch) | |
| tree | 6541c693d153ce4fa14bc86741cc167ffe0c8a69 /src/string.cpp | |
| parent | 8a2078aa9027daa863dc0a3603a1afedd5836cb8 (diff) | |
Add `wasi_wasm32`
Diffstat (limited to 'src/string.cpp')
| -rw-r--r-- | src/string.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/string.cpp b/src/string.cpp index ca53fb2fc..800378689 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -21,13 +21,14 @@ struct String { }; // NOTE(bill): used for printf style arguments #define LIT(x) ((int)(x).len), (x).text -#define STR_LIT(c_str) {cast(u8 *)c_str, gb_size_of(c_str)-1} #if defined(GB_COMPILER_MSVC) && _MSC_VER < 1700 - #define str_lit(c_str) make_string(cast(u8 *)c_str, gb_size_of(c_str)-1) + #define STR_LIT(c_str) make_string(cast(u8 *)c_str, gb_size_of(c_str)-1) #else - #define str_lit(c_str) String{cast(u8 *)c_str, gb_size_of(c_str)-1} + #define STR_LIT(c_str) String{cast(u8 *)c_str, gb_size_of(c_str)-1} #endif +#define str_lit(c_str) STR_LIT(c_str) + // NOTE(bill): String16 is only used for Windows due to its file directories struct String16 { wchar_t *text; |