diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-01-28 09:31:59 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-01-28 19:04:05 -0400 |
commit | a88ef2fde041e5d733b5cbe2728b15ca149d1671 (patch) | |
tree | b4b01c75a640810f6549c485a382242d25a19a97 /src/Runtime/NMWException.h |
Initial commit
Diffstat (limited to 'src/Runtime/NMWException.h')
-rw-r--r-- | src/Runtime/NMWException.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Runtime/NMWException.h b/src/Runtime/NMWException.h new file mode 100644 index 0000000..49b623e --- /dev/null +++ b/src/Runtime/NMWException.h @@ -0,0 +1,16 @@ +#ifndef NMWEXCEPTION_H +#define NMWEXCEPTION_H + +typedef void (dtor_func)(void *object, int free_object); +typedef struct destructor_chain dtor_chain; + +struct destructor_chain { + dtor_chain *next; + dtor_func *destructor; + void *object; +}; + +void *__register_global_object(void *object, dtor_func *destructor, dtor_chain *regmem); +void __destroy_global_chain(); + +#endif |