1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-20 18:27:40 +00:00

Use :length method for (length abstract)

Also adds the janet_lengthv API call. This is
needed because janet_length returns a 32 bit integer, where
as lengthv lets us return larger values (useful for typed arrays).

janet_mcall is an api function that should make it easier to call
a janet method from C code. It shares a similar signature with
janet_call.
This commit is contained in:
Calvin Rose
2019-09-08 15:36:21 -05:00
parent 4ebb749131
commit 39f1d81fd4
6 changed files with 95 additions and 11 deletions

View File

@@ -30,7 +30,7 @@
#endif
/* Implements a pretty printer for Janet. The pretty printer
* is farily simple and not that flexible, but fast. */
* is simple and not that flexible, but fast. */
/* Temporary buffer size */
#define BUFSIZE 64