SPVM::Native::API − Native APIs
The Native::API class in SPVM has methods to call native APIs.
use Native::API;
"has env : Native::Env;"
"has stack : Native::Stack;"
"static method new : Native::API ($env : Native::Env, $stack : Native::Stack);"
"method set_command_info_program_name : void ($program_name : string);"
Copies the program name $program_name and sets the program_name class variable in "CommandInfo" in this instance class to it.
"method set_command_info_argv : void ($argv : string[]);"
Copies the command line arguments $argv and sets the argv class variable in "CommandInfo" class in this instance to it.
"method set_command_info_basetime : void ($base_time : long);"
Sets the base_time class variable in "CommandInfo" class in this instance to the base time $base_time.
"method call_init_methods : void ();"
Calls all INIT blocks in this instance.
"method destroy_class_vars : void ();"
Destroys all class variables in this instance.
"method get_exception : string ();"
Gets the excetpion.
"method set_exception : void ($exception : string);"
Sets an excetpion.
Copyright (c) 2024 Yuki Kimoto
MIT License