Ruby 2.0.0p353(2013-11-22revision43784)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

vm.h
Go to the documentation of this file.
1 /**********************************************************************
2
3 ruby/vm.h -
4
5 $Author: shyouhei $
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
22 #if defined __GNUC__ && __GNUC__ >= 4
23 #pragma GCC visibility push(default)
24 #endif
25
26 /* Place holder.
27 *
28 * We will prepare VM creation/control APIs on 1.9.2 or later.
29 * If you have an interest about it, please see mvm branch.
30 * http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/mvm/
31 */
32
33 /* VM type declaration */
34 typedef struct rb_vm_struct ruby_vm_t;
35
36 /* core API */
37 int ruby_vm_destruct(ruby_vm_t *vm);
38
55 void ruby_vm_at_exit(void(*func)(ruby_vm_t *));
56
57 #if defined __GNUC__ && __GNUC__ >= 4
58 #pragma GCC visibility pop
59 #endif
60
61 #if defined(__cplusplus)
62 #if 0
63 { /* satisfy cc-mode */
64 #endif
65 } /* extern "C" { */
66 #endif
67
68 #endif /* RUBY_VM_H */
func
SSL_METHOD *(* func)(void)
Definition: ossl_ssl.c:108
ruby_vm_at_exit
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:237
ruby_vm_destruct
int ruby_vm_destruct(ruby_vm_t *vm)
Definition: vm.c:1596
rb_vm_struct
Definition: vm_core.h:337