JSCFunctionType.defFFF constructor
JSCFunctionType.defFFF(
- JSContext _ctx, {
- JSCFunctionFFFFunction_? func,
- bool autoDispose = true,
Implementation
JSCFunctionType.defFFF(
this._ctx, {
JSCFunctionFFFFunction_? func,
bool autoDispose = true,
}) {
_cfuncFFFFuncNC = NativeCallable.isolateLocal((double a, double b) {
return func?.call(a, b);
}, exceptionalReturn: 0.0);
_ref = calloc.call(sizeOf<JSCFunctionType_>())
..ref.f_f_f = _cfuncFFFFuncNC!.nativeFunction;
attach(calloc.nativeFree, _ref.cast(), autoDispose: autoDispose);
}