| 605 | |
| 606 | |
| 607 | LUA_API int lua_getglobal(lua_State *L, const char *name) { |
| 608 | Table *reg = hvalue(&G(L)->l_registry); |
| 609 | lua_lock(L); |
| 610 | return auxgetstr(L, luaH_getint(reg, LUA_RIDX_GLOBALS), name); |
| 611 | } |
| 612 | |
| 613 | |
| 614 | LUA_API int lua_gettable(lua_State *L, int idx) { |
no test coverage detected