diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-01-19 22:08:16 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-01-19 22:08:16 +0100 |
commit | 237c13779a0a30bf8a1fbfa94a8cc96f8b27ef59 (patch) | |
tree | 802c7a8a99d743374726b91f267baa6e6512d94e /include | |
parent | fe27feac8909ac0d0a305a4a509a07e2bc9665e1 (diff) |
the Constant class no longer wraps around a Php::Value, but uses the zend_constant struct directly
Diffstat (limited to 'include')
-rw-r--r-- | include/constant.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/constant.h b/include/constant.h index c6be099..619ce46 100644 --- a/include/constant.h +++ b/include/constant.h @@ -32,8 +32,16 @@ public: * Constructor * @param name Constant name * @param value Constant value + * @param size Size of the value (in case of a string) */ - Constant(const char *name, const Value &value); + Constant(const char *name, std::nullptr_t value = nullptr); + Constant(const char *name, bool value); + Constant(const char *name, int32_t value); + Constant(const char *name, int64_t value); + Constant(const char *name, double value); + Constant(const char *name, const char *value); + Constant(const char *name, const char *value, size_t size); + Constant(const char *name, const std::string &value); /** * Destructor |