Skip to content

Commit

Permalink
Squashed '3rdparty/toluapp/' changes from 1fae7fd2..db877c5d
Browse files Browse the repository at this point in the history
db877c5d Code generation fixes. (#4)

git-subtree-dir: 3rdparty/toluapp
git-subtree-split: db877c5dd1c2750cb5521b2bd82528ba500b3666
  • Loading branch information
brndnmtthws committed Dec 22, 2018
1 parent 5d71853 commit f0eb4a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
2 changes: 1 addition & 1 deletion src/bin/lua/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function classPackage:register (pre)
output("#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501\n");
output(pre.."TOLUA_API int luaopen_"..self.name.." (lua_State* tolua_S) {")
output(pre.." return tolua_"..self.name.."_open(tolua_S);")
output(pre.."};")
output(pre.."}")
output("#endif\n\n")

pop()
Expand Down
2 changes: 1 addition & 1 deletion src/lib/tolua_to.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ TOLUA_API int tolua_tofieldvalue(lua_State *L, int lo, int index, int def)

TOLUA_API int tolua_getfieldboolean(lua_State *L, int lo, int index, int def)
{
(void)def;
int v;
(void)def;
lua_pushnumber(L, index);
lua_gettable(L, lo);
v = lua_isnil(L, -1) ? 0 : lua_toboolean(L, -1);
Expand Down

0 comments on commit f0eb4a3

Please sign in to comment.