mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 06:12:05 -04:00
Add check to people trying to foreign import C files.
This commit is contained in:
1 parent
009b6f44e3
commit
00344e1323
2 files changed
+23
No files matched your search
@@ -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