10static void cls_ret_uchar_fn(ffi_cif* cif
__UNUSED__,
void* resp,
void** args,
13 *(
ffi_arg*)resp = *(
unsigned char *)args[0];
14 printf(
"%d: %d\n",*(
unsigned char *)args[0],
23 ffi_closure *pcl = ffi_closure_alloc(
sizeof(ffi_closure), &code);
24 ffi_type * cl_arg_types[2];
28 cl_arg_types[1] =
NULL;
ffi_status ffi_prep_closure_loc(ffi_closure *closure, ffi_cif *cif, void(*fun)(ffi_cif *, void *, void **, void *), void *user_data, void *codeloc)
unsigned char(* cls_ret_uchar)(unsigned char)
ffi_status ffi_prep_cif(ffi_cif *cif, ffi_abi abi, unsigned int nargs, ffi_type *rtype, ffi_type **atypes)