lua-users home
lua-l archive

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


> Is there a way to return back to lua_pcall with success from C?

lua_error is the only way to abort a Lua transaction. However, note that
you can use *any* Lua value a an error "message", and so you can signal
success using a suitable Lua value. In any case, lua_pcall will fail,
that is, will not return LUA_OK.