| 20 | #if defined(EMMY_LUA_51) || defined(EMMY_LUA_JIT) |
| 21 | #include "emmy_debugger/api/lua_api.h" |
| 22 | int lua_absindex(lua_State *L, int idx) { |
| 23 | if (idx > 0) { |
| 24 | return idx; |
| 25 | } |
| 26 | return lua_gettop(L) + idx + 1; |
| 27 | } |
| 28 | #ifndef EMMY_LUA_JIT_SUPPORT_LUA_SETFUNCS |
| 29 | void luaL_setfuncs(lua_State* L, const luaL_Reg* l, int nup) { |
| 30 | for (; l->name != nullptr; l++) { |
no test coverage detected