This commit is contained in:
es3n1n
2025-05-07 17:01:09 +09:00
commit a49f027fde
33 changed files with 2609 additions and 0 deletions

19
defendnot/core/log.hpp Normal file
View File

@@ -0,0 +1,19 @@
#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