14 lines
No EOL
348 B
C++
Executable file
14 lines
No EOL
348 B
C++
Executable file
#pragma once
|
|
|
|
#include <fmt/format.h>
|
|
|
|
namespace prism {
|
|
inline void vlog(fmt::string_view format, fmt::format_args args) {
|
|
fmt::vprint(format, args);
|
|
}
|
|
|
|
template <typename S, typename... Args>
|
|
inline void log(const S& format, Args&&... args) {
|
|
vlog(format, fmt::make_args_checked<Args...>(format, args...));
|
|
}
|
|
} |