1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-11 21:14:16 +00:00

Add function versions of macro API bindings.

This should help address #81. Also hide janet_exit
and janet_assert, as they are really meant for internal usage.
I have not verified that this yet actually works with Rust's
bindgen.
This commit is contained in:
Calvin Rose
2019-04-27 15:45:28 -04:00
parent 73b81e0253
commit f10028d41a
12 changed files with 216 additions and 64 deletions

View File

@@ -634,6 +634,10 @@ void janet_parser_deinit(JanetParser *parser) {
free(parser->states);
}
int janet_parser_has_more(JanetParser *parser) {
return parser->pending;
}
/* C functions */
static int parsermark(void *p, size_t size) {