summaryrefslogtreecommitdiff
path: root/src/function.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/function.h')
-rw-r--r--src/function.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/function.h b/src/function.h
index 40c392f..eabc2e2 100644
--- a/src/function.h
+++ b/src/function.h
@@ -30,6 +30,18 @@ public:
Function(const char *name, native_callback_3 function, const Arguments &arguments = {}) : Callable(name, arguments), _type(3) { _function.f3 = function; }
/**
+ * Copy constructor
+ * @param that
+ */
+ Function(const Function &that) : Callable(that), _function(that._function), _type(that._type) {}
+
+ /**
+ * Move constructor
+ * @param that
+ */
+ Function(Function &&that) : Callable(std::move(that)), _function(that._function), _type(that._type) {}
+
+ /**
* Destructor
*/
virtual ~Function() {}