Lua-API++
2015-02-12-3
Lua-API++ library
|
Yes, all tests pass with LuaJIT in 5.1 compatibility mode.
Yes, just assign same string ID for base and derived classes. In methods cast self parameter to base class. Use base class methods for automatic wrapping.
Using SJLJ mechanism for exceptions may create conflicts with Lua error reporting mechanism because it uses SJLJ too. It happens on chained exception-error-exception conversions (most probable point being State::call and State::run functions that encounter exception-raising error in Lua-API++ powered functions). How to avoid that problem: