method

new

v1_9_3_392 - Show latest stable - Class: Fiddle::Closure
new(p1, p2, p3 = v3)
public

Construct a new Closure object.

  • ret is the C type to be returned

  • args are passed the callback

  • abi is the abi of the closure

If there is an error in preparing the ffi_cif or ffi_prep_closure, then a RuntimeError will be raised.