diff options
| author | Aetias <aetias@outlook.com> | 2024-04-20 14:01:33 +0200 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2024-04-20 14:01:33 +0200 |
| commit | d994c9ee4b153c72757bed21e480e849448aeb5f (patch) | |
| tree | 1b1503f1cdffe9a3ca326d30a768f0d02ea8cc67 /libs/cpp/include | |
| parent | 9a7bc06baa5dadd2632b550e3cf92a1aa13530a5 (diff) | |
| parent | e54e6a277cbdcd3830e9258be2577fe974e51b1a (diff) | |
Merge branch 'main' into item-manager
Diffstat (limited to 'libs/cpp/include')
| -rw-r--r-- | libs/cpp/include/global_destructor_chain.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/cpp/include/global_destructor_chain.h b/libs/cpp/include/global_destructor_chain.h new file mode 100644 index 00000000..5939216e --- /dev/null +++ b/libs/cpp/include/global_destructor_chain.h @@ -0,0 +1,10 @@ +#pragma once + +typedef struct DestructorChain { + /* 0 */ struct DestructorChain *next; + /* 4 */ void *destructor; + /* 8 */ void *object; + /* c */ +} DestructorChain; + +void* __register_global_object(void *object, void *destructor, DestructorChain *link); |
