Mojo function
external_call
external_call[callee: StringSlice[StaticConstantOrigin], return_type: AnyTrivialRegType, *types: AnyType](*args: *types) -> return_type
Calls an external function.
Parameters:
- callee (
StringSlice): The name of the external function. - return_type (
AnyTrivialRegType): The return type. - *types (
AnyType): The argument types.
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:
- callee (
StringSlice): The name of the external function. - return_type (
AnyTrivialRegType): The return type.
Args:
- args (
VariadicPack): The arguments to pass to the external function.
Returns:
return_type: The external call result.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!