summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index fabe8bbc10..9e158df923 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -564,6 +564,10 @@ typedef struct rb_hook_list_struct {
unsigned int running;
} rb_hook_list_t;
+
+// see builtin.h for definition
+typedef const struct rb_builtin_function *RB_BUILTIN;
+
typedef struct rb_vm_struct {
VALUE self;
@@ -647,6 +651,8 @@ typedef struct rb_vm_struct {
VALUE *defined_strings;
st_table *frozen_strings;
+ const struct rb_builtin_function *builtin_function_table;
+
/* params */
struct { /* size in byte */
size_t thread_vm_stack_size;
@@ -880,6 +886,9 @@ typedef struct rb_execution_context_struct {
} machine;
} rb_execution_context_t;
+// for builtin.h
+#define VM_CORE_H_EC_DEFINED 1
+
// Set the vm_stack pointer in the execution context.
void rb_ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size);