#define NUMBER 100
#define STRING "foo"
#define PATH /atom/movable
#if NUMBER == 100 // this is OK
// ...
#endif
#if STRING == "foo" // unexpected token: "foo"
// ...
#endif
#if PATH == /atom/movable // unexpected token: /
// ...
#endif
It'd be great if #if was able to compare paths and/or (constant) strings too; I'm trying to make our map-swapping system on Bay insert a define that's later checked to see if more information about a specific map needs compiling (ie if it's the currently selected map), but short of assigning each map a number I can't find an easy way to do it while only requiring one file #include to change map.