summaryrefslogtreecommitdiff
path: root/object_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'object_wrapper.cpp')
-rw-r--r--object_wrapper.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/object_wrapper.cpp b/object_wrapper.cpp
new file mode 100644
index 0000000..a662fc8
--- /dev/null
+++ b/object_wrapper.cpp
@@ -0,0 +1,18 @@
+#define OUT
+
+#include "library.h"
+OUT #include "build/objects.h"
+OUT #include "global.h"
+
+extern Global global;
+
+OUT #define STRINGIFY2_(v) #v
+OUT #define STRINGIFY2(v) STRINGIFY2_(v)
+
+__OBJECT_NAME__::~__OBJECT_NAME__(void){
+ draw_text(-1,-1,"Object of type " STRINGIFY2(__OBJECT_NAME__) " destructed.");
+}
+
+#define EVENT(name) void __OBJECT_NAME__::name(void)
+
+#include __OBJECT_FNAME__