32 ffi_type *ts1_type_elements[4];
41 ts1_type.alignment = 0;
42 ts1_type.type = FFI_TYPE_STRUCT;
43 ts1_type.elements = ts1_type_elements;
45 ts1_type_elements[1] = &ffi_type_double;
46 ts1_type_elements[2] = &ffi_type_uint;
47 ts1_type_elements[3] =
NULL;
54 &ts1_type, args) == FFI_OK);
63 CHECK(ts1_result->
d == 3.14159 - 1);
static test_structure_1 ABI_ATTR struct1(test_structure_1 ts)
void ffi_call(ffi_cif *cif, void(*fn)(void), void *rvalue, void **avalue)
ffi_status ffi_prep_cif(ffi_cif *cif, ffi_abi abi, unsigned int nargs, ffi_type *rtype, ffi_type **atypes)