diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-12 15:45:19 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-12 15:45:19 +0100 |
commit | 21edee4d584dbf757b006349e903ff7a3b398a1d (patch) | |
tree | 2532ec92649726a2ff59ba440c4090e80c679d9d /src/function.h | |
parent | 4415b472ae57e367e1fcece4c04355b55a868a1b (diff) |
support for static methods
Diffstat (limited to 'src/function.h')
-rw-r--r-- | src/function.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/function.h b/src/function.h index eabc2e2..fd60944 100644 --- a/src/function.h +++ b/src/function.h @@ -24,10 +24,10 @@ public: * @param name Function name * @param function The native C function */ - Function(const char *name, native_callback_0 function, const Arguments &arguments = {}) : Callable(name, arguments), _type(0) { _function.f0 = function; } - Function(const char *name, native_callback_1 function, const Arguments &arguments = {}) : Callable(name, arguments), _type(1) { _function.f1 = function; } - Function(const char *name, native_callback_2 function, const Arguments &arguments = {}) : Callable(name, arguments), _type(2) { _function.f2 = function; } - Function(const char *name, native_callback_3 function, const Arguments &arguments = {}) : Callable(name, arguments), _type(3) { _function.f3 = function; } + Function(const char *name, const native_callback_0 &function, const Arguments &arguments = {}) : Callable(name, arguments), _type(0) { _function.f0 = function; } + Function(const char *name, const native_callback_1 &function, const Arguments &arguments = {}) : Callable(name, arguments), _type(1) { _function.f1 = function; } + Function(const char *name, const native_callback_2 &function, const Arguments &arguments = {}) : Callable(name, arguments), _type(2) { _function.f2 = function; } + Function(const char *name, const native_callback_3 &function, const Arguments &arguments = {}) : Callable(name, arguments), _type(3) { _function.f3 = function; } /** * Copy constructor |