dynarmic/src/common/string_util.h

16 lines
289 B
C
Raw Normal View History

2016-07-01 15:01:06 +02:00
/* This file is part of the dynarmic project.
* Copyright (c) 2016 MerryMage
2020-04-23 16:25:11 +02:00
* SPDX-License-Identifier: 0BSD
2016-07-01 15:01:06 +02:00
*/
#pragma once
namespace Dynarmic::Common {
2016-07-01 15:01:06 +02:00
template <typename T>
constexpr char SignToChar(T value) {
return value >= 0 ? '+' : '-';
}
} // namespace Dynarmic::Common