33 ffi_type *ts8_type_elements[5];
42 ts8_type.alignment = 0;
43 ts8_type.type = FFI_TYPE_STRUCT;
44 ts8_type.elements = ts8_type_elements;
45 ts8_type_elements[0] = &ffi_type_float;
46 ts8_type_elements[1] = &ffi_type_float;
47 ts8_type_elements[2] = &ffi_type_float;
48 ts8_type_elements[3] = &ffi_type_float;
49 ts8_type_elements[4] =
NULL;
67 ffi_call(&cif, FFI_FN(struct8), ts8_result, values);
74 CHECK(ts8_result->
f1 == 5.55f + 1);
75 CHECK(ts8_result->
f2 == 55.5f + 1);
76 CHECK(ts8_result->
f3 == -5.55f + 1);
77 CHECK(ts8_result->
f4 == -55.5f + 1);
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)