mirror of
https://github.com/zeldaret/ss
synced 2026-06-08 20:20:24 -04:00
30 lines
636 B
C
30 lines
636 B
C
#ifndef _NMWEXCEPTION
|
|
#define _NMWEXCEPTION
|
|
|
|
#include "Runtime.PPCEABI.H/__ppc_eabi_linker.h"
|
|
#include <common.h>
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define DTORCALL(dtor, objptr) (((void (*)(void *, int))dtor)(objptr, -1))
|
|
|
|
typedef struct DestructorChain {
|
|
struct DestructorChain *next;
|
|
void *destructor;
|
|
void *object;
|
|
} DestructorChain;
|
|
|
|
void __unregister_fragment(int fragmentID);
|
|
int __register_fragment(struct __eti_init_info *info, char *TOC);
|
|
void *__register_global_object(void *object, void *destructor, void *regmem);
|
|
void __destroy_global_chain(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // _NMWEXCEPTION
|