diff options
Diffstat (limited to 'include/fud_print.hpp')
-rw-r--r-- | include/fud_print.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/fud_print.hpp b/include/fud_print.hpp index 592b106..a8e61de 100644 --- a/include/fud_print.hpp +++ b/include/fud_print.hpp @@ -35,6 +35,17 @@ FormatResult print(FormatString fmt, Args&&... args) return format(outSink, FormatCharMode::Unchecked, fmt, std::forward<Args>(args)...); } +inline void debugPrint(FormatString fmt) +{ + static_cast<void>(print(fmt)); +} + +template <typename... Args> +void debugPrint(FormatString fmt, Args&&... args) +{ + static_cast<void>(print(fmt, std::forward<Args>(args)...)); +} + } // namespace fud #endif |