소스 검색

From Lua 5.2: debug.setmetatable() returns object.

Needs -DLUAJIT_ENABLE_LUA52COMPAT.
Mike Pall 13 년 전
부모
커밋
16d8c83743
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/lib_debug.c

+ 2 - 0
src/lib_debug.c

@@ -41,7 +41,9 @@ LJLIB_CF(debug_setmetatable)
   lj_lib_checktabornil(L, 2);
   L->top = L->base+2;
   lua_setmetatable(L, 1);
+#if !LJ_52
   setboolV(L->top-1, 1);
+#endif
   return 1;
 }