|
ManaPlus
|
Go to the documentation of this file.
22 #ifndef ENUMS_SIMPLETYPES_BOOLDEFINES_H
23 #define ENUMS_SIMPLETYPES_BOOLDEFINES_H
31 #define defBoolEnum(name) \
32 enum class name : bool \
37 const name name##_true = name::MTrue; \
38 const name name##_false = name::MFalse \
40 #define fromBool(val, name) \
41 (val) ? name::MTrue : name::MFalse
45 #define defBoolEnum(name) \
46 const bool name##_true = true; \
47 const bool name##_false = false; \
49 #define fromBool(val, name) \