45 if( !proc )
goto RETURN;
80#if defined(MRBC_ALLOC_VMID)
88 mrbc_set_vm_id( v->
proc, 0 );
98static void c_proc_new(
struct VM *vm,
mrbc_value v[],
int argc)
102 "tried to create Proc object without a block");
114static void c_proc_call(
struct VM *vm,
mrbc_value v[],
int argc)
120 (callinfo_self ? callinfo_self->
method_id : 0),
122 if( !callinfo )
return;
124 if( callinfo_self ) {
143#include "_autogen_class_proc.h"
void mrbc_raw_free(void *ptr)
void mrbc_proc_delete(mrbc_value *val)
mrbc_value mrbc_proc_new(struct VM *vm, void *irep, uint8_t b_or_m)
struct RProc mrbc_proc
Proc object.
void mrbc_raise(struct VM *vm, struct RClass *exc_cls, const char *msg)
Include at once the necessary header files.
mrbc_sym method_id
called method ID.
mrbc_class * own_class
class that owns method.
const uint8_t * inst
pointer to instruction in RITE binary
struct CALLINFO * callinfo
struct CALLINFO * callinfo_self
const mrbc_irep * cur_irep
IREP currently running.
mrbc_callinfo * callinfo_tail
Last point of CALLINFO link.
const uint8_t * inst
Instruction pointer.
mrbc_value * cur_regs
Current register top.
static void mrbc_decref(mrbc_value *v)
#define MRBC_INIT_OBJECT_HEADER(p, t)
static void mrbc_incref(mrbc_value *v)
struct RObject mrbc_value
mrbc_callinfo * mrbc_push_callinfo(struct VM *vm, mrbc_sym method_id, int reg_offset, int n_args)
struct CALLINFO mrbc_callinfo
Call information.
Global configuration of mruby/c VM's.