1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-07 19:13:02 +00:00

Update janet_pcall interface

The programmer can now not only get the used fiber, but
provide a fiber to reuse if many calls are made in succession.
This commit is contained in:
Calvin Rose
2019-02-22 17:10:24 -05:00
parent 2ea28f29b0
commit b14fcb068b
3 changed files with 9 additions and 2 deletions

View File

@@ -1057,7 +1057,6 @@ static Janet cfun_peg_match(int32_t argc, Janet *argv) {
s.captures = janet_array(0);
s.scratch = janet_buffer(10);
s.tags = janet_buffer(10);
s.constants = peg->constants;
s.bytecode = peg->bytecode;
const uint8_t *result = peg_rule(&s, s.bytecode, bytes.bytes + start);