Skip to content

Commit

Permalink
Only provide CATCH_REGISTER_ENUM
Browse files Browse the repository at this point in the history
No longer have version without the CATCH_ prefix
  • Loading branch information
philsquared committed Apr 21, 2019
1 parent 346723c commit 541f1ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions include/internal/catch_tostring.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ )
#else
# define REGISTER_ENUM( enumName, ... ) INTERNAL_CATCH_REGISTER_ENUM( enumName, __VA_ARGS__ )
#endif
#define CATCH_REGISTER_ENUM( enumName, ... ) INTERNAL_CATCH_REGISTER_ENUM( enumName, __VA_ARGS__ )

#ifdef _MSC_VER
#pragma warning(pop)
Expand Down
2 changes: 1 addition & 1 deletion projects/SelfTest/UsageTests/EnumToString.tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ TEST_CASE( "toString(enum class w/operator<<)", "[toString][enum][enumClass]" )

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" ) {
Expand Down

0 comments on commit 541f1ed

Please sign in to comment.