1
0
mirror of synced 2024-12-12 07:51:05 +01:00
ImHex/plugins/libimhex/include/hex/helpers/fmt.hpp
2021-08-29 22:15:18 +02:00

19 lines
428 B
C++

#pragma once
#include <string_view>
#include <fmt/format.h>
#include <fmt/chrono.h>
namespace hex {
template<typename ... Args>
inline std::string format(std::string_view format, Args ... args) {
return fmt::format(fmt::runtime(format), args...);
}
template<typename ... Args>
inline void print(std::string_view format, Args ... args) {
fmt::print(fmt::runtime(format), args...);
}
}