This commit is contained in:
Tom Willemse 2021-09-07 22:34:03 -07:00
parent ba52787271
commit c1cbc359e9
Signed by: ryuslash
GPG key ID: 7D5C407B435025C1

View file

@ -34,7 +34,7 @@ typedef struct {
#define BOOL_VAL(value) ((Value){VAL_BOOL, {.boolean = value}}) #define BOOL_VAL(value) ((Value){VAL_BOOL, {.boolean = value}})
#define NIL_VAL ((Value){VAL_NIL, {.number = 0}}) #define NIL_VAL ((Value){VAL_NIL, {.number = 0}})
#define NUMBER_VAL(value) ((Value){VAL_NUMBER, {.number = value}}) #define NUMBER_VAL(value) ((Value){VAL_NUMBER, {.number = value}})
#define OBJ_VAL(value) ((Value){VAL_OBJ, {.obj = (Obj *)object}}) #define OBJ_VAL(value) ((Value){VAL_OBJ, {.obj = (Obj *)value}})
typedef struct { typedef struct {
int capacity; int capacity;