| 300 | } |
| 301 | |
| 302 | LUA_API int xlua_psettable_bypath(lua_State* L, int idx, const char *path) { |
| 303 | int top = lua_gettop(L); |
| 304 | idx = lua_absindex(L, idx); |
| 305 | lua_pushcfunction(L, c_lua_settable_bypath); |
| 306 | lua_pushvalue(L, idx); |
| 307 | lua_pushstring(L, path); |
| 308 | lua_pushvalue(L, top); |
| 309 | lua_remove(L, top); |
| 310 | return lua_pcall(L, 3, 0, 0); |
| 311 | } |
| 312 | |
| 313 | static int c_lua_getglobal(lua_State* L) { |
| 314 | lua_getglobal(L, lua_tostring(L, 1)); |
nothing calls this directly
no test coverage detected