summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-07-28 13:13:36 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-07-28 13:13:36 +0200
commit4dd2486b005013df4c88b64b34bb963f13ac4c5d (patch)
treefbbc5ba0bced1cec419362b18502b89b5686c313 /include
parent0ff610e8129c39872566c60efa832f95f371ad2e (diff)
added "keeprefcount" parameter to Value::detach()
Diffstat (limited to 'include')
-rw-r--r--include/value.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/value.h b/include/value.h
index 807ad42..532d0c1 100644
--- a/include/value.h
+++ b/include/value.h
@@ -1149,9 +1149,10 @@ protected:
* return a zval pointer, that would otherwise be deallocated the moment
* the function returns.
*
+ * @param keeprefcount Keep the same refcount
* @return zval
*/
- struct _zval_struct *detach();
+ struct _zval_struct *detach(bool keeprefcount = true);
/**
* Set a certain property without running any checks (you must already know