diff options
Diffstat (limited to 'src/bytecode/objects.h')
-rwxr-xr-x | src/bytecode/objects.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bytecode/objects.h b/src/bytecode/objects.h index a25b0b1..35a954f 100755 --- a/src/bytecode/objects.h +++ b/src/bytecode/objects.h | |||
@@ -50,6 +50,7 @@ void display(Object obj); | |||
50 | #define TRUE_VAL ((Object){.type = OBJ_TYPE_TRUE}) | 50 | #define TRUE_VAL ((Object){.type = OBJ_TYPE_TRUE}) |
51 | #define FALSE_VAL ((Object){.type = OBJ_TYPE_FALSE}) | 51 | #define FALSE_VAL ((Object){.type = OBJ_TYPE_FALSE}) |
52 | #define FIXNUM_VAL(VAL) ((Object){.type = OBJ_TYPE_FIXNUM, .fixnum = VAL}) | 52 | #define FIXNUM_VAL(VAL) ((Object){.type = OBJ_TYPE_FIXNUM, .fixnum = VAL}) |
53 | #define BOOL_VAL(VAL) ((VAL) ? TRUE_VAL : FALSE_VAL) | ||
53 | 54 | ||
54 | // Value extraction. | 55 | // Value extraction. |
55 | #define AS_FIXNUM(VAL) ((VAL).fixnum) | 56 | #define AS_FIXNUM(VAL) ((VAL).fixnum) |