mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-12-29 02:35:22 +01:00
Convert formatting over to fmtlib
This commit is contained in:
parent
ee4b30eee4
commit
0102951bdd
9 changed files with 330 additions and 373 deletions
|
|
@ -6,22 +6,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace Dynarmic {
|
||||
namespace Common {
|
||||
|
||||
#ifdef __MINGW32__
|
||||
[[gnu::format(gnu_printf, 1, 2)]]
|
||||
#elif !defined(_MSC_VER)
|
||||
[[gnu::format(printf, 1, 2)]]
|
||||
#endif
|
||||
std::string StringFromFormat(
|
||||
#ifdef _MSC_VER
|
||||
_Printf_format_string_
|
||||
#endif
|
||||
const char* format, ...);
|
||||
|
||||
template <typename T>
|
||||
constexpr char SignToChar(T value) {
|
||||
return value >= 0 ? '+' : '-';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue