What are neko_vm_custom () and neko_vm_set_custom () for?

I am integrating Neko VM into my desktop application. I searched a lot, but I still cannot find useful information about these two functions, which are declared in neko_vm.h:

void *neko_vm_custom( neko_vm *vm, vkind k );
void neko_vm_set_custom( neko_vm *vm, vkind k, void *v );

What are these features for?

Update 1

Got some answer here .

+4
source share
1 answer

With it, neko_vm_set_customyou can attach a user-defined variable (e.g. context) of a user-defined type to your Neko virtual machine.

With neko_vm_customyou get this variable back.

: , . neko_vm_set_custom , neko_vm_custom .

+1

Source: https://habr.com/ru/post/1616137/


All Articles