diff options
Diffstat (limited to 'src/lj_lex.c')
-rw-r--r-- | src/lj_lex.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lj_lex.c b/src/lj_lex.c index bc029761..acfcb921 100644 --- a/src/lj_lex.c +++ b/src/lj_lex.c | |||
@@ -89,14 +89,7 @@ static void inclinenumber(LexState *ls) | |||
89 | static void lex_loadffi(lua_State *L) | 89 | static void lex_loadffi(lua_State *L) |
90 | { | 90 | { |
91 | ptrdiff_t oldtop = savestack(L, L->top); | 91 | ptrdiff_t oldtop = savestack(L, L->top); |
92 | cTValue *tmp; | ||
93 | luaopen_ffi(L); | 92 | luaopen_ffi(L); |
94 | tmp = lj_tab_getstr(tabV(registry(L)), lj_str_newlit(L, "_LOADED")); | ||
95 | if (tmp && tvistab(tmp)) { | ||
96 | GCtab *t = tabV(tmp); | ||
97 | copyTV(L, lj_tab_setstr(L, t, lj_str_newlit(L, "ffi")), L->top-1); | ||
98 | lj_gc_anybarriert(L, t); | ||
99 | } | ||
100 | L->top = restorestack(L, oldtop); | 93 | L->top = restorestack(L, oldtop); |
101 | } | 94 | } |
102 | 95 | ||