| 759 | |
| 760 | |
| 761 | LUA_API void lua_setglobal(lua_State *L, const char *name) { |
| 762 | Table *reg = hvalue(&G(L)->l_registry); |
| 763 | lua_lock(L); /* unlock done in 'auxsetstr' */ |
| 764 | auxsetstr(L, luaH_getint(reg, LUA_RIDX_GLOBALS), name); |
| 765 | } |
| 766 | |
| 767 | |
| 768 | LUA_API void lua_settable(lua_State *L, int idx) { |
no test coverage detected