diff options
author | Adam <Adam@anope.org> | 2017-06-21 20:41:50 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-06-21 20:41:50 -0400 |
commit | cd9895561bd597b52b27c79f0c74a9e6c522d688 (patch) | |
tree | 9ccb43406475a9382773451f2f3397c88fe0d750 /include/modules.h | |
parent | fc6536ceb071ee38ac6f8e430bcb5224a1ee74e1 (diff) |
Convert ModuleReturn to an enum class
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/modules.h b/include/modules.h index 910576c32..bce1b1cc2 100644 --- a/include/modules.h +++ b/include/modules.h @@ -103,17 +103,17 @@ template<class ModuleClass> void ModuleInfo(ModuleDef *moddef) { } AnopeModuleVersion \ }; -enum ModuleReturn +enum class ModuleReturn { - MOD_ERR_OK, - MOD_ERR_PARAMS, - MOD_ERR_EXISTS, - MOD_ERR_NOEXIST, - MOD_ERR_NOLOAD, - MOD_ERR_UNKNOWN, - MOD_ERR_FILE_IO, - MOD_ERR_EXCEPTION, - MOD_ERR_VERSION + OK, + PARAMS, + EXISTS, + NOEXIST, + NOLOAD, + UNKNOWN, + FILE_IO, + EXCEPTION, + VERSION }; /* Module types, in the order in which they are unloaded. The order these are in is IMPORTANT */ |