| 327 | } |
| 328 | |
| 329 | LUA_API int xlua_setglobal (lua_State *L, const char *name) { |
| 330 | int top = lua_gettop(L); |
| 331 | lua_pushcfunction(L, c_lua_setglobal); |
| 332 | lua_pushstring(L, name); |
| 333 | lua_pushvalue(L, top); |
| 334 | lua_remove(L, top); |
| 335 | return lua_pcall(L, 2, 0, 0); |
| 336 | } |
| 337 | |
| 338 | LUA_API int xlua_tryget_cachedud(lua_State *L, int key, int cache_ref) { |
| 339 | lua_rawgeti(L, LUA_REGISTRYINDEX, cache_ref); |
nothing calls this directly
no test coverage detected