Refactor luaL_pushcdata() and luaL_setcdatagc()
Replace copy-pasted code by calls to LuaJIT internal API. Remove useless memset(). Remove size argument from luaL_pushcdata(). Add comments and try to make this stuff to be more clear.
Showing
- src/box/lua/index.cc 1 addition, 1 deletionsrc/box/lua/index.cc
- src/box/lua/tuple.cc 1 addition, 1 deletionsrc/box/lua/tuple.cc
- src/lua/utils.cc 51 additions, 28 deletionssrc/lua/utils.cc
- src/lua/utils.h 5 additions, 8 deletionssrc/lua/utils.h
- test/app/module_api.c 1 addition, 1 deletiontest/app/module_api.c
Loading
Please register or sign in to comment