dynarmic/src/common/string_util.h

26 lines
554 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
#include <string>
namespace Dynarmic {
namespace Common {
2016-07-12 13:25:33 +01:00
std::string StringFromFormat(
#ifdef _MSC_VER
_Printf_format_string_
#endif
const char* format, ...)
2016-07-12 14:31:43 +01:00
#if defined(__GNUC__) && !defined(__clang__)
2016-07-12 13:25:33 +01:00
__attribute__((format(gnu_printf, 1, 2)))
#endif
;
2016-07-01 14:01:06 +01:00
} // namespace Common
} // namespace Dynarmic