diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-06 23:13:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-06 23:13:00 +0300 |
commit | 6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6 (patch) | |
tree | c31a7e703e9452f667ef5a7f0958375ba388c50e /src/enums/simpletypes.h | |
parent | a86bdc28fb8bc8a70c6a19523789495d87c7a56d (diff) | |
download | mv-6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6.tar.gz mv-6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6.tar.bz2 mv-6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6.tar.xz mv-6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6.zip |
Add strong types bool type UseResman.
Diffstat (limited to 'src/enums/simpletypes.h')
-rw-r--r-- | src/enums/simpletypes.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/enums/simpletypes.h b/src/enums/simpletypes.h index 652ddf630..217028f56 100644 --- a/src/enums/simpletypes.h +++ b/src/enums/simpletypes.h @@ -28,13 +28,13 @@ #define defBoolEnum(name) \ enum class name : bool \ { \ - False = false, \ - True = true \ + MFalse = false, \ + MTrue = true \ }; \ - const name name##_true = name::True; \ - const name name##_false = name::False + const name name##_true = name::MTrue; \ + const name name##_false = name::MFalse #define fromBool(val, name) \ - (val) ? name::True : name::False + (val) ? name::MTrue : name::MFalse #else // ADVGCC @@ -47,6 +47,7 @@ #endif // ADVGCC + defBoolEnum(Identified); defBoolEnum(Damaged); defBoolEnum(Favorite); @@ -64,5 +65,6 @@ defBoolEnum(AllowSort); defBoolEnum(NpcNames); defBoolEnum(Enable); defBoolEnum(ForceDisplay); +defBoolEnum(UseResman); #endif // ENUMS_SIMPLETYPES_H |