Name
SPVM::Document::NativeAPI::Argument - Argument Native APIs
Description
The argument native APIs of SPVM are the APIs to manipulate information of arguments.
Usage
SPVM_API_ARG* api_arg = env->api->arg;
# ...
void* basic_type = api_arg->get_basic_type(env->runtime, arg);
The arg
is got by the get_arg_by_index method native API.
Native APIs
get_basic_type
void* (*get_basic_type)(void* runtime, void* arg);
Returns the basic type of the argument.
The runtime
argument is a runtime object.
The arg
argument is a arg object.
get_type_dimension
int32_t (*get_type_dimension)(void* runtime, void* arg);
Returns the type dimention of the argument.
The runtime
argument is a runtime object.
The arg
argument is a arg object.
get_type_flag
int32_t (*get_type_flag)(void* runtime, void* arg);
Returns the type flag of the argument.
The runtime
argument is a runtime object.
The arg
argument is a arg object.
Native API IDs
0 get_basic_type
1 get_type_dimension
2 get_type_flag
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License