1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-20 17:24:48 +00:00

More small changes to help with cross compilation

via makefile. Add option to turn off built in
getline via janetconf.
This commit is contained in:
Calvin Rose
2020-06-27 12:39:16 -05:00
parent 8b96289e2f
commit 9c5e97144d
6 changed files with 30 additions and 17 deletions

View File

@@ -104,7 +104,7 @@ enum JanetInstructionType janet_instructions[JOP_INSTRUCTION_COUNT] = {
};
/* Verify some bytecode */
int32_t janet_verify(JanetFuncDef *def) {
int janet_verify(JanetFuncDef *def) {
int vargs = !!(def->flags & JANET_FUNCDEF_FLAG_VARARG);
int32_t i;
int32_t maxslot = def->arity + vargs;