Ruby
2.7.7p221 (2022-11-24 revision 168ec2b1e5ad0e4688e963d9de019557c78feed9)
include
ruby
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
22
RUBY_SYMBOL_EXPORT_BEGIN
23
24
/* Place holder.
25
*
26
* We will prepare VM creation/control APIs on 1.9.2 or later.
27
*
28
*/
29
30
/* VM type declaration */
31
typedef
struct
rb_vm_struct
ruby_vm_t
;
32
33
/* core API */
34
int
ruby_vm_destruct
(
ruby_vm_t
*vm);
35
52
void
ruby_vm_at_exit
(
void
(*func)(
ruby_vm_t
*));
53
54
RUBY_SYMBOL_EXPORT_END
55
56
#if defined(__cplusplus)
57
#if 0
58
{
/* satisfy cc-mode */
59
#endif
60
}
/* extern "C" { */
61
#endif
62
63
#endif
/* RUBY_VM_H */
RUBY_SYMBOL_EXPORT_BEGIN
#define RUBY_SYMBOL_EXPORT_BEGIN
Definition:
rb_mjit_min_header-2.7.7.h:52
RUBY_SYMBOL_EXPORT_END
#define RUBY_SYMBOL_EXPORT_END
Definition:
rb_mjit_min_header-2.7.7.h:53
rb_vm_struct
Definition:
rb_mjit_min_header-2.7.7.h:9783
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:623
ruby_vm_destruct
int ruby_vm_destruct(ruby_vm_t *vm)
Definition:
vm.c:2329
Generated by
1.9.2