mirror of
https://github.com/es3n1n/defendnot.git
synced 2026-08-02 10:32:01 +00:00
20 lines
486 B
C++
20 lines
486 B
C++
#pragma once
|
|
#include "shared/ctx.hpp"
|
|
#include "shared/util.hpp"
|
|
#include <print>
|
|
#include <thread>
|
|
|
|
#include <Windows.h>
|
|
|
|
namespace defendnot {
|
|
template <typename... TArgs>
|
|
void logln(const std::format_string<TArgs...> fmt, TArgs... args) noexcept {
|
|
if (!shared::ctx.verbose) [[likely]] {
|
|
return;
|
|
}
|
|
|
|
shared::alloc_console();
|
|
std::println(stdout, fmt, std::forward<TArgs>(args)...);
|
|
}
|
|
} // namespace defendnot
|