summaryrefslogtreecommitdiffstats
path: root/builtin.h
blob: 538a1391419986d98323c0f58350a584918e43c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef BUILTIN_H
#define BUILTIN_H

#include "compile.h"

block builtins_bind(block);


typedef void (*cfunction_ptr)(void);

struct cfunction {
  cfunction_ptr fptr;
  const char* name;
  int nargs;
};


jv cfunction_invoke(struct cfunction* function, jv input[]);


#endif