| 849 | |
| 850 | |
| 851 | LUA_API void lua_setglobal (lua_State *L, const char *name) { |
| 852 | const TValue *G; |
| 853 | lua_lock(L); /* unlock done in 'auxsetstr' */ |
| 854 | G = getGtable(L); |
| 855 | auxsetstr(L, G, name); |
| 856 | } |
| 857 | |
| 858 | |
| 859 | LUA_API void lua_settable (lua_State *L, int idx) { |
no test coverage detected