From 08ab881a480a73d6be005c4b4e1cf35814b53e3c Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 17 Oct 2020 15:22:09 +0800 Subject: +init --- src/nb_value.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/nb_value.h (limited to 'src/nb_value.h') 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 -- cgit v1.1-26-g67d0