mirror of https://github.com/catchorg/Catch2.git
Only provide CATCH_REGISTER_ENUM
No longer have version without the CATCH_ prefix
This commit is contained in:
parent
346723c9b6
commit
541f1ed1b3
|
@ -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)
|
||||||
|
|
|
@ -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" ) {
|
||||||
|
|
Loading…
Reference in New Issue