summaryrefslogtreecommitdiff
path: root/include/base.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-15 01:32:22 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-15 01:32:22 +0100
commit3300d64c4dd61e71b62d5b55b1f16e34d6335680 (patch)
treec2bd999ba1a2a1320acba20fb99acf0defb9651e /include/base.h
parent681d1e6aa735568a492140d2307a89063e7aadb9 (diff)
parentcda98dc0dea7144941a46ff20598f3c095d7a6d0 (diff)
implemented __clone method
Diffstat (limited to 'include/base.h')
-rw-r--r--include/base.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/base.h b/include/base.h
index b9dced2..97b153d 100644
--- a/include/base.h
+++ b/include/base.h
@@ -111,6 +111,11 @@ public:
{
return Value(this)[name];
}
+
+ /**
+ * Overridable method that is called right before an object is destructed
+ */
+ void __destruct() const;
/**
* Overridable method that is called right after an object is cloned
@@ -120,13 +125,6 @@ public:
void __clone() const {}
/**
- * Overridable method that is called right before an object is destructed
- *
- * The default implementation does nothing
- */
- void __destruct() const {}
-
- /**
* Overridable method that is called to check if a property is set
*
* The default implementation does nothing, and the script will fall back