diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-01-27 18:54:54 -0600 |
---|---|---|
committer | Seth Barberee <seth.barberee@gmail.com> | 2021-01-28 09:24:55 -0600 |
commit | 1d9dbf3497641cabcd93b204ed4f75204710d690 (patch) | |
tree | 4aff2540db97f6dec5447d28364e4296c2adccd3 /include/debug.h | |
parent | 4886c9f7dcfbaea24ff56e47c81e8af027b86c98 (diff) |
add debug.h
Diffstat (limited to 'include/debug.h')
-rw-r--r-- | include/debug.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/include/debug.h b/include/debug.h new file mode 100644 index 0000000..1fa5884 --- /dev/null +++ b/include/debug.h @@ -0,0 +1,41 @@ +#ifndef GUARD_DEBUG_H +#define GUARD_DEBUG_H +#include "gba/gba.h" + + +struct DebugLocation +{ + char *file; + u32 line; + char *func; +}; + +void FatalErrorHang(); +void FatalErrorPrintFuncFileLine(const char *r0, struct DebugLocation *debug); +void FatalErrorFormatMessage(const char *text, ...); +void Log(u8 *buffer, const char *text, ...); +void NDS_DebugInit(void); +void nullsub_25(void); +void nullsub_26(void); +void nullsub_27(void); +void nullsub_28(void); +void nullsub_29(void); +void nullsub_30(void); +void nullsub_31(void); +void nullsub_32(void); +void nullsub_137(void); +void nullsub_199(void); +void PrintFuncFileLineOrNotEntry(char * buf, struct DebugLocation *debug); +void PrintFuncFileLine(char *buf, struct DebugLocation *loc, const char* prefix); +void PrintMessageWithFuncFileLine(u8 *buffer, struct DebugLocation *debug, const char *text, ...); +void sub_8011B08(void); +void sub_8011B88(const char *text, ...); +u32 sub_8011BA4(void); +u32 sub_8011BA8(void); +const char *sub_8011BAC(void); +void sub_8011B14(void); +u8 sub_8011B20(void); +u8 sub_8011B3C(void); +void sub_8011BC8(u32 r0, u32 r1, u32 r2, ...); +void UnusedHang(void); +#endif |