code: use macros for default node functions
Easier to maintain
This commit is contained in:
@@ -48,6 +48,10 @@
|
||||
|
||||
namespace olive {
|
||||
|
||||
#define NODE_DEFAULT_FUNCTIONS(x) \
|
||||
NODE_DEFAULT_DESTRUCTOR(x) \
|
||||
NODE_COPY_FUNCTION(x)
|
||||
|
||||
#define NODE_DEFAULT_DESTRUCTOR(x) \
|
||||
virtual ~x() override {DisconnectAll();}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user