diff options
Diffstat (limited to 'compat/debug.cpp')
-rw-r--r-- | compat/debug.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/compat/debug.cpp b/compat/debug.cpp new file mode 100644 index 00000000..0a342f8b --- /dev/null +++ b/compat/debug.cpp @@ -0,0 +1,24 @@ +#define FM_NO_CORRADE_DEBUG_EXTERN_TEMPLATE_QUOTED +#include "debug.hpp" + +namespace floormat::detail::corrade_debug { + +template struct Quoted<StringView>; + +Debug::Flags debug1(Debug& dbg) +{ + auto flags = dbg.flags(); + dbg << ""; + dbg.setFlags(flags | Debug::Flag::NoSpace); + dbg << "'"; + return flags; +} + +Debug& debug2(Debug& dbg, Debug::Flags flags) +{ + dbg << "'"; + dbg.setFlags(flags); + return dbg; +} + +} // namespace floormat::detail::corrade_debug |