Ruby  2.5.0dev(2017-10-22revision60238)
vm.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  ruby/vm.h -
4 
5  $Author$
6  created at: Sat May 31 15:17:36 2008
7 
8  Copyright (C) 2008 Yukihiro Matsumoto
9 
10 **********************************************************************/
11 
12 #ifndef RUBY_VM_H
13 #define RUBY_VM_H 1
14 
15 #if defined(__cplusplus)
16 extern "C" {
17 #if 0
18 } /* satisfy cc-mode */
19 #endif
20 #endif
21 
23 
24 /* Place holder.
25  *
26  * We will prepare VM creation/control APIs on 1.9.2 or later.
27  * If you have an interest about it, please see mvm branch.
28  * http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/mvm/
29  */
30 
31 /* VM type declaration */
32 typedef struct rb_vm_struct ruby_vm_t;
33 
34 /* core API */
36 
53 void ruby_vm_at_exit(void(*func)(ruby_vm_t *));
54 
56 
57 #if defined(__cplusplus)
58 #if 0
59 { /* satisfy cc-mode */
60 #endif
61 } /* extern "C" { */
62 #endif
63 
64 #endif /* RUBY_VM_H */
#define RUBY_SYMBOL_EXPORT_END
Definition: missing.h:49
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.
typedefRUBY_SYMBOL_EXPORT_BEGIN struct rb_vm_struct ruby_vm_t
Definition: vm.h:32
int ruby_vm_destruct(ruby_vm_t *vm)
#define RUBY_SYMBOL_EXPORT_BEGIN
Definition: missing.h:48