summaryrefslogtreecommitdiff
path: root/val.h
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-08-06 18:12:16 +0100
committerubq323 <ubq323@ubq323.website>2024-08-06 18:12:16 +0100
commit5b522325bdc0af283ca6d3ec7d71908858d91b33 (patch)
treee2944b3db088fbb4b48dac71365928c628ef30dd /val.h
parenta266b97829ebe698a4256890fdf1214e479fe1de (diff)
deastnodeify form compilers
Diffstat (limited to 'val.h')
-rw-r--r--val.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/val.h b/val.h
index aa68d05..097c06a 100644
--- a/val.h
+++ b/val.h
@@ -36,10 +36,12 @@ const char *typename_str(Val v);
bool is_truthy(Val v);
bool val_equal(Val a, Val b);
+// ValTy or ObjTy
+int val_type(Val v);
typedef enum {
- OTY_STRING,
+ OTY_STRING = 100,
OTY_FUNC,
OTY_ARR,
} ObjTy;