=head1 Name SPVM::Document::NativeAPI::Internal - Internal Native APIs =head1 Description The internal native APIs in L are the APIs for internal operations. These APIs are used for the implementation of the SPVM language, so they should not be used. =head1 Usage SPVM_API_INTERNAL* api_internal = env->api->internal; =head1 Native APIs =head2 get_ref_count C, L, void* object);> Returns the reference count of the object I. =head2 inc_ref_count C, L, void* object);> Increments the reference count of the object I. =head2 dec_ref_count C, L, void* object);> Decrements the reference count of the object I. =head2 leave_scope_local C, L, void** object_vars, int32_t* mortal_stack, int32_t* mortal_stack_top_ptr, int32_t original_mortal_stack_top);> Performs a leaveing scope operation for local variables given object variables I, the mortal stack I, the address of the top of the mortal stack I, and the original top of the mortal stack I. The value referenced by I is updated. =head2 get_stack_tmp_buffer C Returns the temporary buffer on the runtime stack I. The byte size of the temporary buffer is L. Currently, this internal native API is the same as L native API. =head1 Native API IDs 0 get_ref_count 1 inc_ref_count 2 dec_ref_count 3 leave_scope_local 4 get_stack_tmp_buffer =head1 See Also =over 2 =item * L =item * L =item * L =back =head1 Copyright & License Copyright (c) 2023 Yuki Kimoto MIT License