summaryrefslogtreecommitdiff
path: root/src/io/cxxstdio.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/cxxstdio.hpp')
-rw-r--r--src/io/cxxstdio.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/io/cxxstdio.hpp b/src/io/cxxstdio.hpp
index 7312382..08c9a53 100644
--- a/src/io/cxxstdio.hpp
+++ b/src/io/cxxstdio.hpp
@@ -81,14 +81,14 @@ namespace cxxstdio
}
};
-#define XPRINTF(out, fmt, ...) \
- ({ \
- struct format_impl \
- { \
- constexpr static \
- FormatString print_format() { return fmt; } \
- }; \
- cxxstdio::PrintFormatter<format_impl>::print(out, ## __VA_ARGS__); \
+#define XPRINTF(out, fmt, ...) \
+ ({ \
+ struct format_impl \
+ { \
+ constexpr static \
+ FormatString print_format() __asm__("_print_format") { return fmt; } \
+ }; \
+ cxxstdio::PrintFormatter<format_impl>::print(out, ## __VA_ARGS__); \
})
#define FPRINTF(file, fmt, ...) XPRINTF(/*no_cast<FILE *>*/(file), fmt, ## __VA_ARGS__)