summaryrefslogtreecommitdiff
path: root/libs/cpp/include
diff options
context:
space:
mode:
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);