Skip to main content
Log in

Mojo function

external_call

external_call[callee: StringLiteral, type: AnyTrivialRegType, *types: AnyType](*arguments: *types) -> $1

Calls an external function.

Parameters:

  • callee (StringLiteral): The name of the external function.
  • type (AnyTrivialRegType): The return type.
  • *types (AnyType): The argument types.

Args:

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

Returns:

The external call result.

Was this page helpful?