DCPUTeam / DCPUToolchain

[ARCHIVED] The code repository for the DCPU-16 Toolchain.
http://dcputoolcha.in/
MIT License
96 stars 14 forks source link

#define not workin #227

Open orlof opened 11 years ago

orlof commented 11 years ago

I have following defines:

#define TYPE_BOOLEAN        0x0002
#define TYPE_INT            0x0004

#define TYPE_GROUP_NUMERIC          TYPE_INT + TYPE_BOOLEAN
;define TYPE_GROUP_NON_NUMERIC      0xffff - TYPE_GROUP_NUMERIC
#define TYPE_GROUP_NON_NUMERIC      0xfff9

The commented out define does not work, but produces: TYPE_GROUP_NON_NUMERIC=0xfffd

...or is it so that subtraction is not supported with defines?