Ruby  3.4.0dev (2024-11-05 revision 348a53415339076afc4a02fcd09f3ae36e9c4c61)
vm.h
Go to the documentation of this file.
1 #ifndef RUBY_VM_H /*-*-C++-*-vi:se ft=cpp:*/
2 #define RUBY_VM_H 1
18 
20 
21 
25 typedef struct rb_vm_struct ruby_vm_t;
26 
33 
50 void ruby_vm_at_exit(void(*func)(ruby_vm_t *));
51 
57 bool ruby_free_at_exit_p(void);
58 
60 
61 #endif /* RUBY_VM_H */
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:74
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:65
void ruby_vm_at_exit(void(*func)(ruby_vm_t *))
ruby_vm_at_exit registers a function func to be invoked when a VM passed away.
Definition: vm.c:869
bool ruby_free_at_exit_p(void)
Returns whether the Ruby VM will free all memory at shutdown.
Definition: vm.c:4490
int ruby_vm_destruct(ruby_vm_t *vm)
Destructs the passed VM.
Definition: vm.c:3055