mirror of
https://github.com/partic2/libffi
synced 2026-11-11 02:27:19 +00:00
x86: Add support for Go closures
This commit is contained in:
+1
-1
@@ -117,6 +117,7 @@ typedef enum ffi_abi {
|
||||
/* ---- Definitions for closures ----------------------------------------- */
|
||||
|
||||
#define FFI_CLOSURES 1
|
||||
#define FFI_GO_CLOSURES 1
|
||||
|
||||
#define FFI_TYPE_SMALL_STRUCT_1B (FFI_TYPE_LAST + 1)
|
||||
#define FFI_TYPE_SMALL_STRUCT_2B (FFI_TYPE_LAST + 2)
|
||||
@@ -127,7 +128,6 @@ typedef enum ffi_abi {
|
||||
|| (defined (__x86_64__) && defined (X86_DARWIN))
|
||||
# define FFI_TRAMPOLINE_SIZE 24
|
||||
# define FFI_NATIVE_RAW_API 0
|
||||
# define FFI_GO_CLOSURES 1
|
||||
#else
|
||||
# define FFI_TRAMPOLINE_SIZE 12
|
||||
# define FFI_NATIVE_RAW_API 1 /* x86 has native raw api support */
|
||||
|
||||
Reference in New Issue
Block a user