Commit 833a7923 authored by TimePath's avatar TimePath

Add CONSTRUCT for super-initialization

parent c5155e54
......@@ -43,6 +43,9 @@ entity __spawn(string _classname, string _sourceFile, int _sourceLine) {
#define NEW(cname, ...) \
OVERLOAD(spawn##cname, new(cname), ##__VA_ARGS__)
#define CONSTRUCT(cname, ...) \
OVERLOAD(spawn##cname, this, ##__VA_ARGS__)
#define CONSTRUCTOR(cname, ...) \
cname OVERLOAD(spawn##cname, cname this, __VA_ARGS__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment