Name
SPVM::Document::NativeAPI::Internal - Internal Native APIs
Description
The internal native APIs of SPVM are the APIs for internal operations.
Usage
SPVM_API_INTERNAL* api_internal = env->api->internal;
Native APIs
get_ref_count
int32_t (*get_ref_count)(SPVM_ENV* env, SPVM_VALUE* stack, void* object);
Gets the reference count of the object.
inc_ref_count
void (*inc_ref_count)(SPVM_ENV* env, SPVM_VALUE* stack, void* object);
Increments the reference count of the object.
dec_ref_count
void (*dec_ref_count)(SPVM_ENV* env, SPVM_VALUE* stack, void* object);
Decrements the reference count of the object.
leave_scope_local
void (*leave_scope_local)(SPVM_ENV* env, SPVM_VALUE* stack, void** object_vars, int32_t* mortal_stack, int32_t* mortal_stack_top_ptr, int32_t original_mortal_stack_top);
Leaves scope.
Native API IDs
0 get_ref_count
1 inc_ref_count
2 dec_ref_count
3 leave_scope_local
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License