mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
(XDK1) Fix RARCH_LOG/RARCH_WARN/RARCH_ERR - will need some
function to 'prepend' stuff to a string
This commit is contained in:
parent
7fc7776a48
commit
92e3e890de
@ -37,11 +37,13 @@ static inline void RARCH_LOG_V(const char *tag, const char *fmt, va_list ap)
|
||||
OutputDebugStringA(buffer);
|
||||
}
|
||||
|
||||
static inline void RARCH_LOG(const char *msg, ...)
|
||||
static inline void RARCH_LOG(const char *fmt, ...)
|
||||
{
|
||||
char buffer[1024];
|
||||
va_list ap;
|
||||
va_start(ap, msg);
|
||||
RARCH_LOG_V(NULL, msg, ap);
|
||||
va_start(ap, fmt);
|
||||
wvsprintf(buffer, fmt, ap);
|
||||
OutputDebugStringA(buffer);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
@ -70,11 +72,13 @@ static inline void RARCH_WARN_V(const char *tag, const char *fmt, va_list ap)
|
||||
OutputDebugStringA(buffer);
|
||||
}
|
||||
|
||||
static inline void RARCH_WARN(const char *msg, ...)
|
||||
static inline void RARCH_WARN(const char *fmt, ...)
|
||||
{
|
||||
char buffer[1024];
|
||||
va_list ap;
|
||||
va_start(ap, msg);
|
||||
RARCH_WARN_V(NULL, msg, ap);
|
||||
va_start(ap, fmt);
|
||||
wvsprintf(buffer, fmt, ap);
|
||||
OutputDebugStringA(buffer);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
@ -89,11 +93,13 @@ static inline void RARCH_ERR_V(const char *tag, const char *fmt, ...)
|
||||
OutputDebugStringA(fmt);
|
||||
}
|
||||
|
||||
static inline void RARCH_ERR(const char *msg, ...)
|
||||
static inline void RARCH_ERR(const char *fmt, ...)
|
||||
{
|
||||
char buffer[1024];
|
||||
va_list ap;
|
||||
va_start(ap, msg);
|
||||
RARCH_ERR_V(NULL, msg, ap);
|
||||
va_start(ap, fmt);
|
||||
wvsprintf(buffer, fmt, ap);
|
||||
OutputDebugStringA(buffer);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user