diff options
author | Bad Diode <bd@badd10de.dev> | 2021-10-23 19:47:50 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-10-23 19:47:50 +0200 |
commit | b271ce1d9098c9057fccdca6eba6b0ee0a5245a2 (patch) | |
tree | e7b5a5f55e317f7ef6cd090eb12edc421f68504a /src/bytecode/objects.h | |
parent | b07ece568d8d62ca80a8ba3b43fb46a98e117d5a (diff) | |
download | bdl-b271ce1d9098c9057fccdca6eba6b0ee0a5245a2.tar.gz bdl-b271ce1d9098c9057fccdca6eba6b0ee0a5245a2.zip |
Change relevant OPs to use list operations
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) |