Something went wrong. Try again.
[Mirror] Libreopolis is a cross-platform city simulation game fully compatible with SimCity 2000. gitlab.com/conasg/libreopolis
Something went wrong. Try again.
1234567891011121314151617181920// sc2k/warn.hpp — the library's one diagnostic channel: printf-style warnings to stderr.// Everything under include/sc2k that wants to tell the user something non-fatal goes// through here, so a future front end can redirect it in one place.#pragma once#include <cstdarg>#include <cstdio>
namespace sc2k {
[[gnu::format(printf, 1, 2)]] inline void warnf(const char* fmt, ...) { std::va_list ap; va_start(ap, fmt); std::fputs("WARNING: ", stderr); std::vfprintf(stderr, fmt, ap); std::fputc('\n', stderr); va_end(ap);}
} // namespace sc2k