summaryrefslogtreecommitdiff
path: root/include/parameters.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-24 13:43:47 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-24 13:43:47 +0100
commit2fd4198b78358cf2ba527296fafb5b1728e28ea8 (patch)
tree798098f25293908c7fae4e35e8761918460cdb3e /include/parameters.h
parent930ab4880b65885322eb7ca4772b8cdb49a2b0ae (diff)
added tsrm parameter to all methods to make it compile on tsrm platforms
Diffstat (limited to 'include/parameters.h')
-rw-r--r--include/parameters.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/include/parameters.h b/include/parameters.h
index 3a1686a..91fab5a 100644
--- a/include/parameters.h
+++ b/include/parameters.h
@@ -29,25 +29,29 @@ public:
* @param argc Number of arguments
* @param tsrm_ls
*/
- Parameters(struct _zval_struct *this_ptr, int argc);// TSRMLS_DC);
+// Parameters(struct _zval_struct *this_ptr, int argc);
+ Parameters(struct _zval_struct *this_ptr, int argc, void ***tsrm_ls);
/**
* Destructor
*/
virtual ~Parameters() {}
-
+
/**
* The object that is being called
* @return Base
*/
- Base *object();
+ Base *object() const
+ {
+ return _object;
+ }
private:
/**
- * The this pointer
- * @var zval
+ * The base object
+ * @var Base
*/
- struct _zval_struct *_this;
+ Base *_object = nullptr;
};
/**