Skip to content

Commit

Permalink
unify lusc.cross -e to not push filename as parameter for 5.1 and 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
HHHartmann committed Jan 9, 2021
1 parent 6fa7163 commit e23e8e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/lua/luac_cross/luac.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ static int pmain(lua_State* L)
{
luaL_openlibs(L);
if (luaL_loadfile(L,execute)!=0) fatal(lua_tostring(L,-1));
lua_pushstring(L, execute);
if (lua_pcall(L, 1, 1, 0)) fatal(lua_tostring(L,-1));
if (lua_pcall(L, 0, 1, 0)) fatal(lua_tostring(L,-1));
if (!lua_isfunction(L, -1))
{
lua_pop(L,1);
Expand Down

0 comments on commit e23e8e8

Please sign in to comment.