mirror of
https://github.com/dschmenk/PLASMA.git
synced 2024-08-21 21:29:08 +00:00
Wrap macro constants in parentheses
Later commits assume they can use macro constants without needing to provide their own parentheses.
This commit is contained in:
parent
8a672501b7
commit
7ad91aa9e3
@ -8,31 +8,31 @@ typedef struct _opseq {
|
||||
} t_opseq;
|
||||
#define UNARY_CODE(tkn) ((tkn)|0x0100)
|
||||
#define BINARY_CODE(tkn) ((tkn)|0x0200)
|
||||
#define NEG_CODE 0x0100|NEG_TOKEN
|
||||
#define COMP_CODE 0x0100|COMP_TOKEN
|
||||
#define LOGIC_NOT_CODE 0x0100|LOGIC_NOT_TOKEN
|
||||
#define INC_CODE 0x0100|INC_TOKEN
|
||||
#define DEC_CODE 0x0100|DEC_TOKEN
|
||||
#define BPTR_CODE 0x0100|BPTR_TOKEN
|
||||
#define WPTR_CODE 0x0100|WPTR_TOKEN
|
||||
#define MUL_CODE 0x0200|MUL_TOKEN
|
||||
#define DIV_CODE 0x0200|DIV_TOKEN
|
||||
#define MOD_CODE 0x0200|MOD_TOKEN
|
||||
#define ADD_CODE 0x0200|ADD_TOKEN
|
||||
#define SUB_CODE 0x0200|SUB_TOKEN
|
||||
#define SHL_CODE 0x0200|SHL_TOKEN
|
||||
#define SHR_CODE 0x0200|SHR_TOKEN
|
||||
#define AND_CODE 0x0200|AND_TOKEN
|
||||
#define OR_CODE 0x0200|OR_TOKEN
|
||||
#define EOR_CODE 0x0200|EOR_TOKEN
|
||||
#define EQ_CODE 0x0200|EQ_TOKEN
|
||||
#define NE_CODE 0x0200|NE_TOKEN
|
||||
#define GE_CODE 0x0200|GE_TOKEN
|
||||
#define LT_CODE 0x0200|LT_TOKEN
|
||||
#define GT_CODE 0x0200|GT_TOKEN
|
||||
#define LE_CODE 0x0200|LE_TOKEN
|
||||
#define LOGIC_OR_CODE 0x0200|LOGIC_OR_TOKEN
|
||||
#define LOGIC_AND_CODE 0x0200|LOGIC_AND_TOKEN
|
||||
#define NEG_CODE (0x0100|NEG_TOKEN)
|
||||
#define COMP_CODE (0x0100|COMP_TOKEN)
|
||||
#define LOGIC_NOT_CODE (0x0100|LOGIC_NOT_TOKEN)
|
||||
#define INC_CODE (0x0100|INC_TOKEN)
|
||||
#define DEC_CODE (0x0100|DEC_TOKEN)
|
||||
#define BPTR_CODE (0x0100|BPTR_TOKEN)
|
||||
#define WPTR_CODE (0x0100|WPTR_TOKEN)
|
||||
#define MUL_CODE (0x0200|MUL_TOKEN)
|
||||
#define DIV_CODE (0x0200|DIV_TOKEN)
|
||||
#define MOD_CODE (0x0200|MOD_TOKEN)
|
||||
#define ADD_CODE (0x0200|ADD_TOKEN)
|
||||
#define SUB_CODE (0x0200|SUB_TOKEN)
|
||||
#define SHL_CODE (0x0200|SHL_TOKEN)
|
||||
#define SHR_CODE (0x0200|SHR_TOKEN)
|
||||
#define AND_CODE (0x0200|AND_TOKEN)
|
||||
#define OR_CODE (0x0200|OR_TOKEN)
|
||||
#define EOR_CODE (0x0200|EOR_TOKEN)
|
||||
#define EQ_CODE (0x0200|EQ_TOKEN)
|
||||
#define NE_CODE (0x0200|NE_TOKEN)
|
||||
#define GE_CODE (0x0200|GE_TOKEN)
|
||||
#define LT_CODE (0x0200|LT_TOKEN)
|
||||
#define GT_CODE (0x0200|GT_TOKEN)
|
||||
#define LE_CODE (0x0200|LE_TOKEN)
|
||||
#define LOGIC_OR_CODE (0x0200|LOGIC_OR_TOKEN)
|
||||
#define LOGIC_AND_CODE (0x0200|LOGIC_AND_TOKEN)
|
||||
#define CONST_CODE 0x0300
|
||||
#define STR_CODE 0x0301
|
||||
#define LB_CODE 0x0302
|
||||
|
Loading…
Reference in New Issue
Block a user