summaryrefslogtreecommitdiffstats
path: root/libdimension/compiler.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-05-16 23:44:06 -0600
committerTavian Barnes <tavianator@gmail.com>2011-05-16 23:44:06 -0600
commita932d4f46c2fadd6c750d844846fb9ba4baf45e0 (patch)
tree6f459c60433752713a74f84c8dddd1004037c91d /libdimension/compiler.h
parentd374841194f24c7cb1cdc52fc631fcb2982af358 (diff)
downloaddimension-a932d4f46c2fadd6c750d844846fb9ba4baf45e0.tar.xz
Add basic leak check.
Diffstat (limited to 'libdimension/compiler.h')
-rw-r--r--libdimension/compiler.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libdimension/compiler.h b/libdimension/compiler.h
index cb77ca6..d6435d0 100644
--- a/libdimension/compiler.h
+++ b/libdimension/compiler.h
@@ -39,9 +39,13 @@
#endif
#ifdef __GNUC__
- #define DMNSN_HOT __attribute__((hot))
- #define DMNSN_INTERNAL __attribute__((visibility("hidden")))
+ #define DMNSN_HOT __attribute__((hot))
+ #define DMNSN_INTERNAL __attribute__((visibility("hidden")))
+ #define DMNSN_DESTRUCTOR __attribute__((destructor(102)))
+ #define DMNSN_LATE_DESTRUCTOR __attribute__((destructor(101)))
#else
#define DMNSN_HOT
#define DMNSN_INTERNAL
+ #define DMNSN_DESTRUCTOR
+ #define DMNSN_LATE_DESTRUCTOR
#endif