add some FFI functions such as pic_defun and pic_get_args
This commit is contained in:
@@ -24,6 +24,8 @@ typedef struct {
|
||||
int arena_idx;
|
||||
} pic_state;
|
||||
|
||||
typedef pic_value (*pic_func_t)(pic_state *);
|
||||
|
||||
void *pic_alloc(pic_state *, size_t);
|
||||
struct pic_object *pic_obj_alloc(pic_state *, size_t, enum pic_tt);
|
||||
void pic_free(pic_state *, void *);
|
||||
@@ -35,6 +37,9 @@ void pic_gc_arena_restore(pic_state *, int);
|
||||
pic_state *pic_open();
|
||||
void pic_close(pic_state *);
|
||||
|
||||
void pic_get_args(pic_state *, const char *, ...);
|
||||
void pic_defun(pic_state *, const char *, pic_func_t);
|
||||
|
||||
pic_value pic_cons(pic_state *, pic_value, pic_value);
|
||||
pic_value pic_car(pic_state *, pic_value);
|
||||
pic_value pic_cdr(pic_state *, pic_value);
|
||||
|
||||
Reference in New Issue
Block a user