Use StringRef UDL for more string literals when expanding macros

* for the name of the listener when registering listener
* for the original expression in assertion macros
This commit is contained in:
Martin Hořeňovský committed 2023-02-20 14:31:26 +01:00
1 parent bf6a15a69a
commit dcc9fa3f38
2 files changed
+3 -3

No files matched your search

@@ -23,9 +23,9 @@
#if !defined(CATCH_CONFIG_DISABLE)
#if !defined(CATCH_CONFIG_DISABLE_STRINGIFICATION)
#define CATCH_INTERNAL_STRINGIFY(...) #__VA_ARGS__
#define CATCH_INTERNAL_STRINGIFY(...) #__VA_ARGS__##_catch_sr
#else
#define CATCH_INTERNAL_STRINGIFY(...) "Disabled by CATCH_CONFIG_DISABLE_STRINGIFICATION"
#define CATCH_INTERNAL_STRINGIFY(...) "Disabled by CATCH_CONFIG_DISABLE_STRINGIFICATION"_catch_sr
#endif
#if defined(CATCH_CONFIG_FAST_COMPILE) || defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)