diff options
Diffstat (limited to 'lib/lua/src/luacomp.c')
-rw-r--r-- | lib/lua/src/luacomp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/lua/src/luacomp.c b/lib/lua/src/luacomp.c index 87372a2..0009b24 100644 --- a/lib/lua/src/luacomp.c +++ b/lib/lua/src/luacomp.c @@ -1,5 +1,5 @@ /* - ** $Id: luacomp.c,v 1.6 2004-11-27 21:46:07 pixel Exp $ + ** $Id: luacomp.c,v 1.7 2004-12-27 19:52:24 pixel Exp $ ** Lua compiler (saves bytecodes to files; also list bytecodes) ** Highly hacked by Nicolas "Pixel" Noble to be transformed into a ** small form-factor LUA compiler. @@ -78,5 +78,7 @@ void luacmain(lua_State * L, int stripping, lua_Chunkwriter w, void *uD) { f = combine(L, lua_gettop(L)); if (stripping) strip(L, f); + lua_lock(L); luaU_dump(L, f, w, uD); + lua_unlock(L); } |