unwrapExternalFunctionType method

Function unwrapExternalFunctionType(
  1. HTFunction func
)

Using unwrapper to turn a script function into a external function

Implementation

Function unwrapExternalFunctionType(HTFunction func) {
  if (!externFunctionTypedefs.containsKey(func.externalTypeId)) {
    throw HTError.undefinedExternal(func.externalTypeId!);
  }
  final unwrapFunc = externFunctionTypedefs[func.externalTypeId]!;
  return unwrapFunc(func);
}