From dcaa318d677a1a6881ccc87640ae75c0fc578bfb Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Mon, 2 Nov 2015 06:55:15 +0100 Subject: Initial --- object_wrapper.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 object_wrapper.cpp (limited to 'object_wrapper.cpp') 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__ -- cgit v1.2.3-70-g09d2