Only provide CATCH_REGISTER_ENUM

No longer have version without the CATCH_ prefix
This commit is contained in:
Phil Nash 2019-04-21 20:26:46 +03:00
parent 346723c9b6
commit 541f1ed1b3
2 changed files with 2 additions and 6 deletions

View File

@ -648,11 +648,7 @@ struct ratio_string<std::milli> {
} \ } \
}; };
#ifdef CATCH_CONFIG_PREFIX_ALL
#define CATCH_REGISTER_ENUM( enumName, ... ) INTERNAL_CATCH_REGISTER_ENUM( enumName, __VA_ARGS__ ) #define CATCH_REGISTER_ENUM( enumName, ... ) INTERNAL_CATCH_REGISTER_ENUM( enumName, __VA_ARGS__ )
#else
# define REGISTER_ENUM( enumName, ... ) INTERNAL_CATCH_REGISTER_ENUM( enumName, __VA_ARGS__ )
#endif
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(pop) #pragma warning(pop)

View File

@ -67,7 +67,7 @@ TEST_CASE( "toString(enum class w/operator<<)", "[toString][enum][enumClass]" )
enum class EnumClass3 { Value1, Value2, Value3, Value4 }; enum class EnumClass3 { Value1, Value2, Value3, Value4 };
REGISTER_ENUM( EnumClass3, EnumClass3::Value1, EnumClass3::Value2, EnumClass3::Value3 ) CATCH_REGISTER_ENUM( EnumClass3, EnumClass3::Value1, EnumClass3::Value2, EnumClass3::Value3 )
TEST_CASE( "REGISTER_ENUM" ) { TEST_CASE( "REGISTER_ENUM" ) {