SSBM Decomp
Loading...
Searching...
No Matches
debug.h File Reference
#include <platform.h>
#include <dolphin/os.h>
#include <dolphin/os/OSContext.h>

Go to the source code of this file.

Macros

#define HSD_ASSERT(line, cond)    ((cond) ? ((void) 0) : __assert(__FILE__, line, #cond))
 

Typedefs

typedef void(* ReportCallback) (s32, s32)
 
typedef void(* PanicCallback) (OSContext *,...)
 
typedef int(* LogFunc) (s32, s32, s32 *, s32)
 

Functions

ATTRIBUTE_NORETURN void __assert (char *, u32, char *)
 
void HSD_LogInit (void)
 
ATTRIBUTE_NORETURN void HSD_Panic (char *, u32, char *)
 
int report_func (s32 arg0, s32 arg1, s32 *arg2, s32 arg3)
 
void HSD_SetReportCallback (ReportCallback cb)
 
void HSD_SetPanicCallback (PanicCallback cb)
 

Macro Definition Documentation

◆ HSD_ASSERT

#define HSD_ASSERT (   line,
  cond 
)     ((cond) ? ((void) 0) : __assert(__FILE__, line, #cond))
Todo:

Take file as another arg, ignore it if BUGFIX.

Add another variant that takes a string for cond.

Typedef Documentation

◆ ReportCallback

typedef void(* ReportCallback) (s32, s32)

◆ PanicCallback

typedef void(* PanicCallback) (OSContext *,...)

◆ LogFunc

typedef int(* LogFunc) (s32, s32, s32 *, s32)

Function Documentation

◆ __assert()

ATTRIBUTE_NORETURN void __assert ( char *  str,
u32  arg1,
char *  arg2 
)

◆ HSD_LogInit()

void HSD_LogInit ( void  )

◆ HSD_Panic()

ATTRIBUTE_NORETURN void HSD_Panic ( char *  arg0,
u32  line,
char *  arg2 
)

◆ report_func()

int report_func ( s32  arg0,
s32  arg1,
s32 arg2,
s32  arg3 
)

◆ HSD_SetReportCallback()

void HSD_SetReportCallback ( ReportCallback  cb)

◆ HSD_SetPanicCallback()

void HSD_SetPanicCallback ( PanicCallback  cb)