next: *
This commit is contained in:
parent
2ac2f85512
commit
90175b7e26
12 changed files with 300 additions and 77 deletions
11
next/core/value.c
Normal file
11
next/core/value.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include <growl.h>
|
||||
|
||||
uint32_t growl_type(Growl obj) {
|
||||
if (obj == GROWL_NIL)
|
||||
return GROWL_TYPE_NIL;
|
||||
if (GROWL_IMM(obj))
|
||||
return GROWL_TYPE_NUMBER;
|
||||
GrowlObjectHeader *hdr = GROWL_UNBOX(obj);
|
||||
return hdr->type;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue