From 64860d86f1494b784e158548a80b5715744630e3 Mon Sep 17 00:00:00 2001 From: jwellbelove Date: Tue, 24 Jan 2017 15:21:39 +0000 Subject: [PATCH] Added ETL_ prefixes --- src/enum_type.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/enum_type.h b/src/enum_type.h index 971e8044..ca0c9f55 100644 --- a/src/enum_type.h +++ b/src/enum_type.h @@ -48,12 +48,12 @@ SOFTWARE. /// West = 270 /// }; /// -/// DECLARE_ENUM_TYPE(CompassDirection, int) -/// ENUM_TYPE(North, "North") -/// ENUM_TYPE(South, "South") -/// ENUM_TYPE(East, "East") -/// ENUM_TYPE(West, "West") -/// END_ENUM_TYPE +/// ETL_DECLARE_ENUM_TYPE(CompassDirection, int) +/// ETL_ENUM_TYPE(North, "North") +/// ETL_ENUM_TYPE(South, "South") +/// ETL_ENUM_TYPE(East, "East") +/// ETL_ENUM_TYPE(West, "West") +/// ETL_END_ENUM_TYPE /// }; ///\endcode /// Using the enumeration. @@ -80,7 +80,7 @@ SOFTWARE. //***************************************************************************** // The declaration of the member functions and the first section of the 'c_str' function. //***************************************************************************** -#define DECLARE_ENUM_TYPE(TypeName, ValueType) \ +#define ETL_DECLARE_ENUM_TYPE(TypeName, ValueType) \ typedef ValueType value_type; \ TypeName() {} \ TypeName(const TypeName &other) : value(other.value) {} \ @@ -98,14 +98,14 @@ SOFTWARE. //***************************************************************************** // A case in the 'c_str' function's switch statement. //***************************************************************************** -#define ENUM_TYPE(value, name) \ +#define ETL_ENUM_TYPE(value, name) \ case value: \ return name; \ //***************************************************************************** // The final section of the 'c_str' function and the value declaration. //***************************************************************************** -#define END_ENUM_TYPE \ +#define ETL_END_ENUM_TYPE \ default: \ return "?"; \ } \