dynarmic/src/common/string_util.h

17 lines
393 B
C
Raw Normal View History

2016-07-01 14:01:06 +01:00
/* This file is part of the dynarmic project.
* Copyright (c) 2016 MerryMage
* This software may be used and distributed according to the terms of the GNU
* General Public License version 2 or any later version.
*/
#pragma once
namespace Dynarmic::Common {
2016-07-01 14:01:06 +01:00
template <typename T>
constexpr char SignToChar(T value) {
return value >= 0 ? '+' : '-';
}
} // namespace Dynarmic::Common