move to meson for build system
This commit is contained in:
parent
fdd1ee61b5
commit
9616fb616e
28 changed files with 123 additions and 24 deletions
10
src/object.c
Normal file
10
src/object.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include "object.h"
|
||||
|
||||
I type(O o) {
|
||||
if (o == NIL)
|
||||
return TYPE_NIL;
|
||||
if (IMM(o))
|
||||
return TYPE_NUM;
|
||||
Hd *h = UNBOX(o);
|
||||
return h->type;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue