mruby/c VM Source Code release 3.4
Loading...
Searching...
No Matches
RMethod Struct Reference

Method management structure. More...

#include <class.h>

Collaboration diagram for RMethod:

Data Fields

uint8_t type
 M:OP_DEF or OP_ALIAS, m:mrblib or define_method()
uint8_t c_func
 0:IREP, 1:C Func, 2:C Func (built-in)
mrbc_sym sym_id
 function names symbol ID
union { 
   struct IREP *   irep 
 to IREP for ruby proc. More...
   mrbc_func_t   func 
 to C function. More...
}; 
union { 
   struct RMethod *   next 
 link to next method. More...
   struct RClass *   cls 
 return value for mrbc_find_method. More...
}; 

Detailed Description

Method management structure.

Definition at line 170 of file class.h.

Field Documentation

◆ [union]

union { ... } RMethod

◆ [union]

union { ... } RMethod

◆ c_func

uint8_t RMethod::c_func

0:IREP, 1:C Func, 2:C Func (built-in)

Definition at line 172 of file class.h.

◆ cls

struct RClass* RMethod::cls

return value for mrbc_find_method.

Definition at line 180 of file class.h.

◆ func

mrbc_func_t RMethod::func

to C function.

Definition at line 176 of file class.h.

◆ irep

struct IREP* RMethod::irep

to IREP for ruby proc.

Definition at line 175 of file class.h.

◆ next

struct RMethod* RMethod::next

link to next method.

Definition at line 179 of file class.h.

◆ sym_id

mrbc_sym RMethod::sym_id

function names symbol ID

Definition at line 173 of file class.h.

◆ type

uint8_t RMethod::type

M:OP_DEF or OP_ALIAS, m:mrblib or define_method()

Definition at line 171 of file class.h.


The documentation for this struct was generated from the following file: