1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-21 02:37:49 +00:00

Update cook to take headers for natives.

This should help incremental building.
This commit is contained in:
Calvin Rose
2019-06-13 00:41:20 -04:00
parent 5689ef1af1
commit 82edc19137
2 changed files with 6 additions and 1 deletions

View File

@@ -262,8 +262,12 @@ uint64_t janet_getflags(const Janet *argv, int32_t n, const char *flags) {
for (int32_t i = 0; i < flen; i++) {
if (((uint8_t) flags[i]) == keyw[j]) {
ret |= 1ULL << i;
goto found;
}
}
janet_panicf("unexpected flag %c, expected one of \"%s\"", (char) keyw[j], flags);
found:
;
}
return ret;
}