lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



>In Lua 5.1, luaL_dostring is defined as
>	luaL_loadstring(L, s) || lua_pcall(L, 0, 0, 0)

>and so it ignores returns.

>Try this:

>#undef luaL_dostring
>#define luaL_dostring(L,s)	\
>	(luaL_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0))

such is the case, thanks for urgent help!

mos