mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 09:24:33 +00:00
Add check to people trying to foreign import C files.
This commit is contained in:
@@ -104,6 +104,13 @@ gb_internal gb_inline bool str_eq_ignore_case(String const &a, String const &b)
|
||||
return false;
|
||||
}
|
||||
|
||||
template <isize N>
|
||||
gb_internal gb_inline bool str_eq_ignore_case(String const &a, char const (&b_)[N]) {
|
||||
String b = {cast(u8 *)b_, N-1};
|
||||
return str_eq_ignore_case(a, b);
|
||||
}
|
||||
|
||||
|
||||
gb_internal void string_to_lower(String *s) {
|
||||
for (isize i = 0; i < s->len; i++) {
|
||||
s->text[i] = gb_char_to_lower(s->text[i]);
|
||||
|
||||
Reference in New Issue
Block a user