Kyty/source/emulator/include/Emulator/Libs/Printf.h

30 lines
818 B
C
Raw Normal View History

2021-12-01 09:29:27 +00:00
#ifndef EMULATOR_INCLUDE_EMULATOR_LIBS_PRINTF_H_
#define EMULATOR_INCLUDE_EMULATOR_LIBS_PRINTF_H_
#include "Kyty/Core/Common.h"
#include "Emulator/Common.h"
#ifdef KYTY_EMU_ENABLED
namespace Kyty::Libs {
struct VaContext;
struct VaList;
2022-04-13 10:36:34 +00:00
using libc_printf_std_func_t = KYTY_FORMAT_PRINTF(1, 2) KYTY_SYSV_ABI int (*)(const char* str, ...);
using libc_printf_ctx_func_t = int (*)(VaContext* c);
using libc_snprintf_ctx_func_t = int (*)(VaContext* c);
using libc_vprintf_func_t = int (*)(const char* str, VaList* c);
libc_printf_std_func_t GetPrintfStdFunc();
libc_printf_ctx_func_t GetPrintfCtxFunc();
libc_snprintf_ctx_func_t GetSnrintfCtxFunc();
libc_vprintf_func_t GetVprintfFunc();
2021-12-01 09:29:27 +00:00
} // namespace Kyty::Libs
#endif // KYTY_EMU_ENABLED
#endif /* EMULATOR_INCLUDE_EMULATOR_LIBS_PRINTF_H_ */