| 175 | } |
| 176 | |
| 177 | static int LuaCallCallback(lua_State* L) |
| 178 | { |
| 179 | luaL_checktype(L, -1, LUA_TFUNCTION); |
| 180 | lua_pushvalue(L, 1); |
| 181 | lua_setglobal(L, "_callback"); |
| 182 | lua_pushlightuserdata(L, L); |
| 183 | lua_setglobal(L, "_state"); |
| 184 | return 0; |
| 185 | } |
| 186 | |
| 187 | /* |
| 188 | * This test mimicks how callbacks are handled in extensions, with respect to coroutine safety |
nothing calls this directly
no test coverage detected