#import search rule: relative then core/

This commit is contained in:
Ginger Bill
2016-09-17 22:42:09 +01:00
parent 67694c0df0
commit 2d6171f3e5
10 changed files with 81 additions and 1621 deletions

View File

@@ -13,8 +13,9 @@ typedef struct String {
gb_inline String make_string(u8 *text, isize len) {
String s;
s.text = text;
if (len < 0)
if (len < 0) {
len = gb_strlen(cast(char *)text);
}
s.len = len;
return s;
}