diff options
Diffstat (limited to 'lapi.c')
| -rw-r--r-- | lapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -681,6 +681,11 @@ static int auxgetstr (lua_State *L, const TValue *t, const char *k) { | |||
| 681 | } | 681 | } |
| 682 | 682 | ||
| 683 | 683 | ||
| 684 | /* | ||
| 685 | ** The following function assumes that the registry cannot be a weak | ||
| 686 | ** table, so that en mergency collection while using the global table | ||
| 687 | ** cannot collect it. | ||
| 688 | */ | ||
| 684 | static void getGlobalTable (lua_State *L, TValue *gt) { | 689 | static void getGlobalTable (lua_State *L, TValue *gt) { |
| 685 | Table *registry = hvalue(&G(L)->l_registry); | 690 | Table *registry = hvalue(&G(L)->l_registry); |
| 686 | lu_byte tag = luaH_getint(registry, LUA_RIDX_GLOBALS, gt); | 691 | lu_byte tag = luaH_getint(registry, LUA_RIDX_GLOBALS, gt); |
