summaryrefslogtreecommitdiff
path: root/object_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'object_wrapper.cpp')
-rw-r--r--object_wrapper.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/object_wrapper.cpp b/object_wrapper.cpp
index a662fc8..24c3e6e 100644
--- a/object_wrapper.cpp
+++ b/object_wrapper.cpp
@@ -1,16 +1,19 @@
#define OUT
-#include "library.h"
+#define STRINGIFY_(v) #v
+#define STRINGIFY(v) STRINGIFY_(v)
+
+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):Object(){}
+__OBJECT_NAME__::__OBJECT_NAME__(double _x,double _y):Object(_x,_y){}
__OBJECT_NAME__::~__OBJECT_NAME__(void){
- draw_text(-1,-1,"Object of type " STRINGIFY2(__OBJECT_NAME__) " destructed.");
+ log("Object of type " STRINGIFY(__OBJECT_NAME__) " destructed.");
}
#define EVENT(name) void __OBJECT_NAME__::name(void)