diff options
author | tomsmeding <hallo@tomsmeding.nl> | 2015-11-02 06:55:15 +0100 |
---|---|---|
committer | tomsmeding <hallo@tomsmeding.nl> | 2015-11-02 06:55:15 +0100 |
commit | dcaa318d677a1a6881ccc87640ae75c0fc578bfb (patch) | |
tree | 3ff05dc8494d6629dddfde30f859e0c72e620926 /object_wrapper.cpp |
Initial
Diffstat (limited to 'object_wrapper.cpp')
-rw-r--r-- | object_wrapper.cpp | 18 |
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__ |