Add list of C identifier suggestions (types and keywords)

This commit is contained in:
gingerBill
2024-03-18 17:32:26 +00:00
parent 00344e1323
commit 97be7feb99
2 changed files with 57 additions and 14 deletions

View File

@@ -106,6 +106,9 @@ gb_internal gb_inline bool str_eq_ignore_case(String const &a, String const &b)
template <isize N>
gb_internal gb_inline bool str_eq_ignore_case(String const &a, char const (&b_)[N]) {
if (a.len != N-1) {
return false;
}
String b = {cast(u8 *)b_, N-1};
return str_eq_ignore_case(a, b);
}