diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-08-28 23:11:57 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-08-28 23:11:57 +0200 |
commit | 5ab6927a5fa17e73161d7126ca506e5e51ba0e55 (patch) | |
tree | 321186e3f01c09c5f739725da5a06abc31104b67 /src/arginfo.h | |
parent | d69d5ca8f8f6a8c75099052f8541d7144385572c (diff) |
added parameter handling, and return value handling
Diffstat (limited to 'src/arginfo.h')
-rw-r--r-- | src/arginfo.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/arginfo.h b/src/arginfo.h index 8ed00c8..0080667 100644 --- a/src/arginfo.h +++ b/src/arginfo.h @@ -31,11 +31,19 @@ public: /** * Constructor if this argument can be anything * @param name Name of the argument - * @param type Type hint + * @param type Type hint (arrayType or callableType) * @param ref Is this a pass-by-reference argument? */ ArgInfo(const std::string &name, Type type = nullType, bool ref = false) : _name(name), _type(type), _null(false), _ref(ref) {} + + /** + * Constructor if this argument can be anything + * @param name Name of the argument + * @param ref Is this a pass-by-reference argument? + */ + ArgInfo(const std::string &name, bool ref = false) : + _name(name), _type(nullType), _null(false), _ref(ref) {} /** * Destructor |