From 962d2aaa9f0bfe3d2b374b23e6916e992975e2e7 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 7 Jan 2015 21:14:43 +0100 Subject: [PATCH] LJ_GC64: Return true for ffi.abi("gc64"). --- doc/ext_ffi_api.html | 2 ++ src/lib_ffi.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/doc/ext_ffi_api.html b/doc/ext_ffi_api.html index 4289c190..8cf48dc3 100644 --- a/doc/ext_ffi_api.html +++ b/doc/ext_ffi_api.html @@ -468,6 +468,8 @@ otherwise. The following parameters are currently defined: eabiEABI variant of the standard ABI winWindows variant of the standard ABI + +gc6464 bit GC references

ffi.os

diff --git a/src/lib_ffi.c b/src/lib_ffi.c index 6e601539..b2b2d37f 100644 --- a/src/lib_ffi.c +++ b/src/lib_ffi.c @@ -751,6 +751,9 @@ LJLIB_CF(ffi_abi) LJLIB_REC(.) case H_(4ab624a8,4ab624a8): b = 1; break; /* win */ #endif case H_(3af93066,1f001464): b = 1; break; /* le/be */ +#if LJ_GC64 + case H_(9e89d2c9,13c83c92): b = 1; break; /* gc64 */ +#endif default: break; }