diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-01-25 20:41:13 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-01-25 20:41:13 +0100 |
commit | b2758c687ab8c36ef7a48787b4d590255e69cbc0 (patch) | |
tree | 7b5133ef683103ccd8a9cfef53413b1a8b9f5f76 /include/call.h | |
parent | 110f379c083a9e061d2337efabb86f12ce0fa750 (diff) |
added Php::define() function to create constants at run time
Diffstat (limited to 'include/call.h')
-rw-r--r-- | include/call.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/call.h b/include/call.h index 950cc3e..d807190 100644 --- a/include/call.h +++ b/include/call.h @@ -21,6 +21,9 @@ inline bool class_exists(const std::string &classname, bool autoload = true) { extern Value constant(const char *constant); extern Value constant(const char *constant, size_t size); extern Value constant(const std::string &constant); +extern bool define(const char *name, size_t size, const Value &value); +extern bool define(const char *name, const Value &value); +extern bool define(const std::string &name, const Value &value); extern bool defined(const char *constant); extern bool defined(const char *constant, size_t size); extern bool defined(const std::string &constant); |