We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e083057 commit 914aab3Copy full SHA for 914aab3
value.h
@@ -25,8 +25,8 @@ typedef struct {
25
int int_val;
26
double float_val;
27
const char* str_val;
28
+ Object* obj;
29
} data;
- Obj* obj;
30
} Value;
31
#endif
32
@@ -47,6 +47,7 @@ typedef struct {
47
#define AS_INT(v) ((v).data.int_val)
48
#define AS_FLOAT(v) ((v).data.float_val)
49
#define AS_STRING(v) ((v).data.str_val)
50
+#define AS_OBJ(v) ((v).data.obj)
51
52
void print_value(Value value);
53
void* reallocate(void* pointer, size_t oldSize, size_t newSize);
0 commit comments