diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-09-21 18:16:21 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-14 11:00:25 +0100 |
commit | b9dd9b46d25f106694528722d63fdc1611d31afd (patch) | |
tree | 748d356c9d2e9700b846248a87099701d1008f28 /controller/ctl-lua.h | |
parent | c27b88e3c36585d11e866902f73d1e961357c45c (diff) |
Make compile LUA2C functions, binding not working
Change-Id: I37e66929e3ebf464802f9b89a222743936862029
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'controller/ctl-lua.h')
-rw-r--r-- | controller/ctl-lua.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/controller/ctl-lua.h b/controller/ctl-lua.h index 2fbebf5..d41c6a5 100644 --- a/controller/ctl-lua.h +++ b/controller/ctl-lua.h @@ -63,9 +63,9 @@ typedef int (*Lua2cFunctionT)(char *funcname, json_object *argsJ); typedef int (*Lua2cWrapperT) (lua_State* luaState, char *funcname, Lua2cFunctionT callback); #define CTLP_LUALOAD Lua2cWrapperT Lua2cWrap; -#define CTLP_LUA2C(FuncName, label,argsJ, context) static int FuncName(char*label,json_object*argsJ);\ +#define CTLP_LUA2C(FuncName, label,argsJ) static int FuncName(char*label,json_object*argsJ);\ int lua2c_ ## FuncName(lua_State* luaState){return((*Lua2cWrap)(luaState, MACRO_STR_VALUE(FuncName), FuncName));};\ - static int FuncName(char* label, json_object* argsJ, void* context) + static int FuncName(char* label, json_object* argsJ) typedef enum { LUA_DOCALL, |