mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Add Catch.hpp StringMaker template specialisation for rdcstr
* Otherwise it gets identified as a 'range' with begin() / end() and "foobar"
gets printed as { 'f', 'o', 'o', 'b', 'a', 'r' }
This commit is contained in:
Vendored
+11
-1
@@ -29,6 +29,16 @@
|
||||
#define CATCH_CONFIG_FORCE_FALLBACK_STRINGIFIER
|
||||
#define CATCH_CONFIG_INLINE_DEBUG_BREAK
|
||||
|
||||
#include "api/replay/basic_types.h"
|
||||
#include "api/replay/stringise.h"
|
||||
|
||||
#include "official/catch.hpp"
|
||||
#include "official/catch.hpp"
|
||||
|
||||
namespace Catch
|
||||
{
|
||||
template <>
|
||||
struct StringMaker<rdcstr>
|
||||
{
|
||||
static std::string convert(rdcstr const &value) { return value; }
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user