summaryrefslogtreecommitdiff
path: root/src/nb_value.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nb_value.h')
-rw-r--r--src/nb_value.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nb_value.h b/src/nb_value.h
new file mode 100644
index 0000000..b8191bb
--- /dev/null
+++ b/src/nb_value.h
@@ -0,0 +1,20 @@
+#ifndef NB_VALUE_H
+#define NB_VALUE_H
+
+// Identifies which specific type a heap-allocated object is.
+typedef enum {
+ OBJ_CLASS,
+ OBJ_CLOSURE,
+ OBJ_FIBER,
+ OBJ_FN,
+ OBJ_FOREIGN,
+ OBJ_INSTANCE,
+ OBJ_LIST,
+ OBJ_MAP,
+ OBJ_MODULE,
+ OBJ_RANGE,
+ OBJ_STRING,
+ OBJ_UPVALUE
+} ObjType;
+
+#endif \ No newline at end of file