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