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