From cd9895561bd597b52b27c79f0c74a9e6c522d688 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 21 Jun 2017 20:41:50 -0400 Subject: Convert ModuleReturn to an enum class --- include/modules.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'include') 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 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 */ -- cgit