Oberon00 / luabind

Luabind is a library that helps you create bindings between C++ and Lua.
http://oberon00.github.io/luabind/
Other
46 stars 13 forks source link

pcall: port to lua-5.4 #43

Closed timblechmann closed 3 years ago

timblechmann commented 3 years ago

lua 5.4 changes the lua_resume API:

The function lua_resume has an extra parameter. This out parameter
returns the number of values on the top of the stack that were yielded
or returned by the coroutine. (In previous versions, those values were
the entire stack.)

https://www.lua.org/manual/5.4/manual.html#8.3

this patch is similar to the implementation in the sol bindings