summaryrefslogtreecommitdiff
path: root/libs/cpp/include
diff options
context:
space:
mode:
authorAetias <144526980+AetiasHax@users.noreply.github.com>2024-04-20 13:46:13 +0200
committerGitHub <noreply@github.com>2024-04-20 13:46:13 +0200
commite54e6a277cbdcd3830e9258be2577fe974e51b1a (patch)
tree9e60352819362fd17370823290b6a2c33ffc484d /libs/cpp/include
parent6415abdc571f38fe7f4f24880fd93da9105a00f8 (diff)
parentd874460fa2d487c724a0f947b8a67d8ab1d7f7fd (diff)
Merge pull request #31 from AetiasHax/global-object
Support for decompiling static initializers
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);