FFI: Compile ffi.gc().

This commit is contained in:
Mike Pall
2012-10-10 18:56:16 +02:00
parent 1c626112a0
commit 0b55e05d06
3 changed files with 29 additions and 17 deletions

View File

@@ -762,7 +762,7 @@ LJLIB_CF(ffi_metatype)
LJLIB_PUSH(top-7) LJLIB_SET(!) /* Store reference to finalizer table. */
LJLIB_CF(ffi_gc)
LJLIB_CF(ffi_gc) LJLIB_REC(.)
{
GCcdata *cd = ffi_checkcdata(L, 1);
TValue *fin = lj_lib_checkany(L, 2);