1
0
forked from Mirror/wren

Add IS_FALSE for non-NaN-tag values.

This commit is contained in:
Bob Nystrom
2013-11-19 07:36:59 -08:00
parent 6b87a8400f
commit 4266facfda

View File

@ -276,6 +276,7 @@ typedef struct
// Determines if [value] is a garbage-collected object or not.
#define IS_OBJ(value) ((value).type == VAL_OBJ)
#define IS_FALSE(value) ((value).type == VAL_FALSE)
#define IS_NULL(value) ((value).type == VAL_NULL)
#define IS_NUM(value) ((value).type == VAL_NUM)