From e4a25ad5ffd60f518d1f7d25642d079f631ff82e Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 10 Mar 2017 19:15:03 +0000 Subject: [PATCH] Added CATCH_REGISTER_LISTENER without the INTERNAL_ prefix --- include/internal/catch_reporter_registrars.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/internal/catch_reporter_registrars.hpp b/include/internal/catch_reporter_registrars.hpp index 4d5557e1..1a47d192 100644 --- a/include/internal/catch_reporter_registrars.hpp +++ b/include/internal/catch_reporter_registrars.hpp @@ -92,7 +92,11 @@ namespace Catch { #define INTERNAL_CATCH_REGISTER_REPORTER( name, reporterType ) \ namespace{ Catch::ReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); } +// Deprecated - use the form without INTERNAL_ #define INTERNAL_CATCH_REGISTER_LISTENER( listenerType ) \ namespace{ Catch::ListenerRegistrar catch_internal_RegistrarFor##listenerType; } +#define CATCH_REGISTER_LISTENER( listenerType ) \ + namespace{ Catch::ListenerRegistrar catch_internal_RegistrarFor##listenerType; } + #endif // TWOBLUECUBES_CATCH_REPORTER_REGISTRARS_HPP_INCLUDED