More...
Go to the source code of this file.
|
static struct RClass * | mrb_class (mrb_state *mrb, mrb_value v) |
|
void | mrb_define_method_raw (mrb_state *, struct RClass *, mrb_sym, mrb_method_t) |
|
void | mrb_alias_method (mrb_state *, struct RClass *c, mrb_sym a, mrb_sym b) |
|
void | mrb_remove_method (mrb_state *mrb, struct RClass *c, mrb_sym sym) |
|
mrb_method_t | mrb_method_search_vm (mrb_state *, struct RClass **, mrb_sym) |
|
mrb_method_t | mrb_method_search (mrb_state *, struct RClass *, mrb_sym) |
|
struct RClass * | mrb_class_real (struct RClass *cl) |
|
void | mrb_mc_clear_by_class (mrb_state *mrb, struct RClass *c) |
|
void | mrb_mt_foreach (mrb_state *, struct RClass *, mrb_mt_foreach_func *, void *) |
|
See Copyright Notice in mruby.h
◆ MRB_CLASS_ORIGIN
#define MRB_CLASS_ORIGIN |
( |
| c | ) |
|
Value: do {\
if ((c)->flags & MRB_FL_CLASS_IS_PREPENDED) {\
(c) = (c)->super;\
while (!((c)->flags & MRB_FL_CLASS_IS_ORIGIN)) {\
(c) = (c)->super;\
}\
}\
} while (0)
◆ mrb_class_ptr
#define mrb_class_ptr |
( |
| v | ) |
|
Value:((
struct RClass*)(mrb_ptr(v)))
Class class.
Definition class.h:17
◆ MRB_DEFINE_ALLOCATOR
#define MRB_DEFINE_ALLOCATOR |
( |
| c | ) |
|
Value:((c)->flags &= ~MRB_FL_UNDEF_ALLOCATE)
◆ MRB_INSTANCE_TT
#define MRB_INSTANCE_TT |
( |
| c | ) |
|
Value:(enum mrb_vtype)((c)->flags & MRB_INSTANCE_TT_MASK)
◆ MRB_SET_INSTANCE_TT
#define MRB_SET_INSTANCE_TT |
( |
| c, |
|
|
| tt ) |
Value:((c)->flags = (((c)->flags & ~MRB_INSTANCE_TT_MASK) | (char)(tt)))
◆ MRB_UNDEF_ALLOCATOR
#define MRB_UNDEF_ALLOCATOR |
( |
| c | ) |
|
Value:(mrb_assert((c)->tt == MRB_TT_CLASS), (c)->flags |= MRB_FL_UNDEF_ALLOCATE)
◆ MRB_UNDEF_ALLOCATOR_P
#define MRB_UNDEF_ALLOCATOR_P |
( |
| c | ) |
|
Value:((c)->flags & MRB_FL_UNDEF_ALLOCATE)