33 lines
726 B
C
33 lines
726 B
C
|
#ifndef LIBFFI_TARGET_H
|
||
|
#define LIBFFI_TARGET_H
|
||
|
|
||
|
#ifndef LIBFFI_H
|
||
|
#error "Please do not include ffitarget.h directly into your source. Use ffi.h instead."
|
||
|
#endif
|
||
|
|
||
|
/* ---- System specific configurations ----------------------------------- */
|
||
|
|
||
|
#ifndef LIBFFI_ASM
|
||
|
typedef unsigned long ffi_arg;
|
||
|
typedef signed long ffi_sarg;
|
||
|
|
||
|
typedef enum ffi_abi {
|
||
|
FFI_FIRST_ABI = 0,
|
||
|
FFI_SYSV,
|
||
|
FFI_LAST_ABI,
|
||
|
FFI_DEFAULT_ABI = FFI_SYSV
|
||
|
} ffi_abi;
|
||
|
#endif
|
||
|
|
||
|
/* ---- Definitions for closures ----------------------------------------- */
|
||
|
|
||
|
#define FFI_CLOSURES 1
|
||
|
#define FFI_NATIVE_RAW_API 0
|
||
|
#define FFI_TRAMPOLINE_SIZE (24)
|
||
|
|
||
|
#define FFI_TARGET_SPECIFIC_VARIADIC 1
|
||
|
#define FFI_EXTRA_CIF_FIELDS unsigned nfixedargs;
|
||
|
|
||
|
#endif
|
||
|
|