Code: Select all
enum MyEnum
MyEntry
end enum
'this work
#ifdef MyEnum.MyEntry
#print " worked"
#endif
'those does not
#ifdef MyEnum.NotMyEntry
#print " worked"
#endif
#if Defined( MyEnum.NotMyEntry )
#print " worked"
#endif
error 7: Expected ')' in '#if Defined( MyEnum.NotMyEntry )'
so seems both #ifdef and defined() throws meaningless errors when queried for existance
it happens when anything that requires a dot (or can optionally accept a dot) like namespace,enum (type is even worse)
ofcourse theres a bunch of similar weakness related to typeof( type.member ) and stuff like that as well