mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-29 08:12:54 -04:00
1b0b96665a
Co-authored-by: NWPlayer123 <NWPlayer123@users.noreply.github.com>
54 lines
1.5 KiB
C++
54 lines
1.5 KiB
C++
#ifndef _JSYSTEM_JUT_JUTASSERTION_H
|
|
#define _JSYSTEM_JUT_JUTASSERTION_H
|
|
|
|
#include "types.h"
|
|
#include "dolphin/os.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
|
|
namespace JUTAssertion
|
|
{
|
|
void create();
|
|
void flushMessage();
|
|
void flushMessage_dbPrint();
|
|
u32 getSDevice(void);
|
|
|
|
void showAssert_f(u32 device, char const *file, int line, char const *errormsg, ...);
|
|
inline void showAssert(u32 device, char const *file, int line, char const *errormsg) {
|
|
showAssert_f(device, file, line, "%s", errormsg);
|
|
}
|
|
|
|
void setConfirmMessage(u32 device, char *file, int line, bool condition, const char *msg);
|
|
void setWarningMessage_f(u32 device, char *file, int line, char const *, ...);
|
|
inline void setWarningMessage(u32 device, char *file, int line, char const *errormsg) {
|
|
setWarningMessage_f(device, file, line, "%s", errormsg);
|
|
}
|
|
|
|
void setLogMessage_f(u32 device, char *file, int line, char const *fmt, ...);
|
|
extern "C"
|
|
{
|
|
void showAssert_f_va(u32 device, const char *file, int line, const char *fmt, va_list vl);
|
|
void setWarningMessage_f_va(u32 device, char *file, int line, const char *fmt, va_list vl);
|
|
void setLogMessage_f_va(u32 device, char *file, int line, const char *fmt, va_list vl);
|
|
}
|
|
}
|
|
|
|
#define JUT_PANIC(...)
|
|
#define JUT_PANIC_F(...)
|
|
#define JUT_CONFIRM_MESSAGE(...)
|
|
#define JUT_WARNING(...)
|
|
#define JUT_WARNING_F(...)
|
|
#define JUT_ASSERT_MSG(...)
|
|
#define JUT_MINMAX_ASSERT(...)
|
|
#define JUT_MAX_ASSERT(...)
|
|
#define JUT_LOG_F(...)
|
|
#define JUT_ASSERT(...)
|
|
#define JUT_ASSERT_F(...)
|
|
|
|
}
|
|
#endif
|
|
|
|
#endif
|