mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Ensure macro parameter is parenthesized.
This commit is contained in:
@ -61,7 +61,7 @@
|
||||
// These macros promote a primitive C value to a full Wren Value. There are
|
||||
// more defined below that are specific to the Nan tagged or other
|
||||
// representation.
|
||||
#define BOOL_VAL(boolean) (boolean ? TRUE_VAL : FALSE_VAL) // boolean
|
||||
#define BOOL_VAL(boolean) ((boolean) ? TRUE_VAL : FALSE_VAL) // boolean
|
||||
#define NUM_VAL(num) (wrenNumToValue(num)) // double
|
||||
#define OBJ_VAL(obj) (wrenObjectToValue((Obj*)(obj))) // Any Obj___*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user