summaryrefslogtreecommitdiff
path: root/libs/cpp/include
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2024-04-20 13:09:19 +0200
committerAetias <aetias@outlook.com>2024-04-20 13:09:19 +0200
commitcd26802eaf52f5b26051bd6e03d235c78d333b4a (patch)
tree619cd4d5664d0ff2d86cd2c4ffe282d034298b29 /libs/cpp/include
parenta4330e37e9d27799754e1f553cbe9dee9180bc17 (diff)
Decomp `__register_global_object`
Diffstat (limited to 'libs/cpp/include')
-rw-r--r--libs/cpp/include/global_destructor_chain.h10
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);