mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2025-04-19 11:42:53 +00:00
20 lines
511 B
C++
20 lines
511 B
C++
#pragma once
|
|
|
|
namespace console {
|
|
HWND get_window();
|
|
|
|
void print(std::string_view fmt, std::format_args&& args,
|
|
const std::source_location& loc);
|
|
|
|
template <typename... Args> class info {
|
|
public:
|
|
info(std::string_view fmt, const Args&... args,
|
|
const std::source_location& loc = std::source_location::current()) {
|
|
print(fmt, std::make_format_args(args...), loc);
|
|
}
|
|
};
|
|
|
|
template <typename... Args>
|
|
info(std::string_view fmt, const Args&... args) -> info<Args...>;
|
|
} // namespace console
|