Skip to main content

Mojo function

external_call

external_call[callee: StringSlice[StaticConstantOrigin], return_type: AnyTrivialRegType, *types: AnyType](*args: *types) -> return_type

Calls an external function.

Parameters:

Args:

  • *args (*types): The arguments to pass to the external function.

Returns:

return_type: The external call result.

external_call[callee: StringSlice[StaticConstantOrigin], return_type: AnyTrivialRegType](args: VariadicPack[is_owned, origin, AnyType, element_types]) -> return_type

Calls an external function.

Parameters:

Args:

  • args (VariadicPack): The arguments to pass to the external function.

Returns:

return_type: The external call result.

Was this page helpful?