5#ifndef SLEIPNIR_DISABLE_DIAGNOSTICS
10#if __has_include(<fmt/base.h>)
20#ifndef SLEIPNIR_DISABLE_DIAGNOSTICS
25template <
typename... T>
26inline void print(fmt::format_string<T...> fmt, T&&... args) {
28 fmt::print(fmt, std::forward<T>(args)...);
29 }
catch (
const std::system_error&) {
36template <
typename... T>
37inline void print(std::FILE* f, fmt::format_string<T...> fmt, T&&... args) {
39 fmt::print(f, fmt, std::forward<T>(args)...);
40 }
catch (
const std::system_error&) {
47template <
typename... T>
48inline void println(fmt::format_string<T...> fmt, T&&... args) {
50 fmt::println(fmt, std::forward<T>(args)...);
51 }
catch (
const std::system_error&) {
58template <
typename... T>
59inline void println(std::FILE* f, fmt::format_string<T...> fmt, T&&... args) {
61 fmt::println(f, fmt, std::forward<T>(args)...);
62 }
catch (
const std::system_error&) {
68template <
typename... Args>
69inline void print([[maybe_unused]] Args&&... args) {}
71template <
typename... Args>
72inline void println([[maybe_unused]] Args&&... args) {}
Definition expression_graph.hpp:11
void println(fmt::format_string< T... > fmt, T &&... args)
Wrapper around fmt::println() that squelches write failure exceptions.
Definition print.hpp:48
void print(fmt::format_string< T... > fmt, T &&... args)
Wrapper around fmt::print() that squelches write failure exceptions.
Definition print.hpp:26