osh.h

My personal stdc++ replacement
git clone git://git.oshgnacknak.de/osh.h.git
Log | Files | Refs

commit 62acc7fa6823eccfb6458cbcf04824d7a3d2fea3
parent 6edb8e4f9aeffe1cb6ff1e2f28faa3124178aa94
Author: Oshgnacknak <osh@oshgnacknak.de>
Date:   Mon,  3 Jan 2022 14:22:41 +0100

Allow flush FileFormatters

Diffstat:
Mosh.h | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/osh.h b/osh.h @@ -29,6 +29,7 @@ namespace osh { template<typename... Args> void format(const char* fmt, Args...); + void flush(); }; extern FileFormatter fout; @@ -181,6 +182,10 @@ namespace osh { print1(fmt, t); } + void FileFormatter::flush() { + fflush(stream); + } + template<typename... Args> void panic(Args... args) { printp(ferr, args...);