Commit 3f39e679 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

Ajuste pra permitir que todas bibliotecas Lua possam ser carregadas pelo...

Ajuste pra permitir que todas bibliotecas Lua possam ser carregadas pelo LUA_PATH quando é usado o parâmetro DEBUG.

git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/branches/02_00_00@143895 ae0415b3-e90b-0410-900d-d0be9363c56b
parent bd2ea982
......@@ -426,9 +426,6 @@ static int pmain (lua_State *L) {
luapreload_oil(L);
luapreload_luascs(L);
luapreload_luaopenbus(L);
/* ??? */
if (luaL_dostring(L, callerchunk) == 0)
lua_setfield(L, LUA_REGISTRYINDEX, OPENBUS_EXECUTOR);
s->status = handle_luainit(L);
if (s->status != 0) return 0;
......@@ -442,6 +439,11 @@ static int pmain (lua_State *L) {
if (has_d)
s->status = enable_dynload(L);
if (s->status != 0) return 0;
/* ??? */
if (luaL_dostring(L, callerchunk) == 0)
lua_setfield(L, LUA_REGISTRYINDEX, OPENBUS_EXECUTOR);
s->status = runargs(L, argv, (script > 0) ? script : s->argc);
if (s->status != 0) return 0;
if (script)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment