Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
mruby.h File Reference
#include <stdint.h>
#include <stddef.h>
#include "mrbconf.h"
#include "mruby/value.h"
Include dependency graph for mruby.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mrb_callinfo
struct  mrb_context
struct  mrb_state

Macros

#define MRB_ARENA_SIZE   100
#define mrb_class_new_instance(mrb, argc, argv, c)   mrb_obj_new(mrb,c,argc,argv)
#define MRB_ARGS_REQ(n)   ((mrb_aspec)((n)&0x1f) << 18)
#define MRB_ARGS_OPT(n)   ((mrb_aspec)((n)&0x1f) << 13)
#define MRB_ARGS_ARG(n1, n2)   (MRB_ARGS_REQ(n1)|MRB_ARGS_OPT(n2))
#define MRB_ARGS_REST()   ((mrb_aspec)(1 << 12))
#define MRB_ARGS_POST(n)   ((mrb_aspec)((n)&0x1f) << 7)
#define MRB_ARGS_KEY(n1, n2)   ((mrb_aspec)((((n1)&0x1f) << 2) | ((n2)?(1<<1):0)))
#define MRB_ARGS_BLOCK()   ((mrb_aspec)1)
#define MRB_ARGS_ANY()   ARGS_REST()
#define MRB_ARGS_NONE()   ((mrb_aspec)0)
#define ARGS_REQ(n)   MRB_ARGS_REQ(n)
#define ARGS_OPT(n)   MRB_ARGS_OPT(n)
#define ARGS_REST()   MRB_ARGS_REST()
#define ARGS_POST(n)   MRB_ARGS_POST()
#define ARGS_KEY(n1, n2)   MRB_ARGS_KEY(n1,n2)
#define ARGS_BLOCK()   MRB_ARGS_BLOCK()
#define ARGS_ANY()   MRB_ARGS_ANY()
#define ARGS_NONE()   MRB_ARGS_NONE()
#define mrb_gc_mark_value(mrb, val)
#define mrb_field_write_barrier_value(mrb, obj, val)
#define ISASCII(c)   1
#define ISPRINT(c)   (ISASCII(c) && isprint((int)(unsigned char)(c)))
#define ISSPACE(c)   (ISASCII(c) && isspace((int)(unsigned char)(c)))
#define ISUPPER(c)   (ISASCII(c) && isupper((int)(unsigned char)(c)))
#define ISLOWER(c)   (ISASCII(c) && islower((int)(unsigned char)(c)))
#define ISALNUM(c)   (ISASCII(c) && isalnum((int)(unsigned char)(c)))
#define ISALPHA(c)   (ISASCII(c) && isalpha((int)(unsigned char)(c)))
#define ISDIGIT(c)   (ISASCII(c) && isdigit((int)(unsigned char)(c)))
#define ISXDIGIT(c)   (ISASCII(c) && isxdigit((int)(unsigned char)(c)))
#define TOUPPER(c)   (ISASCII(c) ? toupper((int)(unsigned char)(c)) : (c))
#define TOLOWER(c)   (ISASCII(c) ? tolower((int)(unsigned char)(c)) : (c))
#define E_RUNTIME_ERROR   (mrb_class_get(mrb, "RuntimeError"))
#define E_TYPE_ERROR   (mrb_class_get(mrb, "TypeError"))
#define E_ARGUMENT_ERROR   (mrb_class_get(mrb, "ArgumentError"))
#define E_INDEX_ERROR   (mrb_class_get(mrb, "IndexError"))
#define E_RANGE_ERROR   (mrb_class_get(mrb, "RangeError"))
#define E_NAME_ERROR   (mrb_class_get(mrb, "NameError"))
#define E_NOMETHOD_ERROR   (mrb_class_get(mrb, "NoMethodError"))
#define E_SCRIPT_ERROR   (mrb_class_get(mrb, "ScriptError"))
#define E_SYNTAX_ERROR   (mrb_class_get(mrb, "SyntaxError"))
#define E_LOCALJUMP_ERROR   (mrb_class_get(mrb, "LocalJumpError"))
#define E_REGEXP_ERROR   (mrb_class_get(mrb, "RegexpError"))
#define E_NOTIMP_ERROR   (mrb_class_get(mrb, "NotImplementedError"))
#define E_FLOATDOMAIN_ERROR   (mrb_class_get(mrb, "FloatDomainError"))
#define E_KEY_ERROR   (mrb_class_get(mrb, "KeyError"))
#define mrb_assert(p)   ((void)0)

Typedefs

typedef uint32_t mrb_code
typedef uint32_t mrb_aspec
typedef void *(* mrb_allocf )(struct mrb_state *mrb, void *, size_t, void *ud)
typedef struct mrb_state mrb_state
typedef mrb_value(* mrb_func_t )(mrb_state *mrb, mrb_value)
typedef enum call_type call_type
typedef struct mrb_pool mrb_pool

Enumerations

enum  mrb_fiber_state { MRB_FIBER_CREATED = 0, MRB_FIBER_RUNNING, MRB_FIBER_RESUMED, MRB_FIBER_TERMINATED }
enum  gc_state { GC_STATE_NONE = 0, GC_STATE_MARK, GC_STATE_SWEEP }
enum  call_type { CALL_PUBLIC, CALL_FCALL, CALL_VCALL, CALL_TYPE_MAX }

Functions

struct RClassmrb_define_class (mrb_state *, const char *, struct RClass *)
struct RClassmrb_define_module (mrb_state *, const char *)
mrb_value mrb_singleton_class (mrb_state *, mrb_value)
void mrb_include_module (mrb_state *, struct RClass *, struct RClass *)
void mrb_define_method (mrb_state *, struct RClass *, const char *, mrb_func_t, mrb_aspec)
void mrb_define_class_method (mrb_state *, struct RClass *, const char *, mrb_func_t, mrb_aspec)
void mrb_define_singleton_method (mrb_state *, struct RObject *, const char *, mrb_func_t, mrb_aspec)
void mrb_define_module_function (mrb_state *, struct RClass *, const char *, mrb_func_t, mrb_aspec)
void mrb_define_const (mrb_state *, struct RClass *, const char *name, mrb_value)
void mrb_undef_method (mrb_state *, struct RClass *, const char *)
void mrb_undef_class_method (mrb_state *, struct RClass *, const char *)
mrb_value mrb_obj_new (mrb_state *mrb, struct RClass *c, int argc, mrb_value *argv)
mrb_value mrb_instance_new (mrb_state *mrb, mrb_value cv)
struct RClassmrb_class_new (mrb_state *mrb, struct RClass *super)
struct RClassmrb_module_new (mrb_state *mrb)
mrb_bool mrb_class_defined (mrb_state *mrb, const char *name)
struct RClassmrb_class_get (mrb_state *mrb, const char *name)
struct RClassmrb_class_get_under (mrb_state *mrb, struct RClass *outer, const char *name)
mrb_value mrb_obj_dup (mrb_state *mrb, mrb_value obj)
mrb_value mrb_check_to_integer (mrb_state *mrb, mrb_value val, const char *method)
mrb_bool mrb_obj_respond_to (struct RClass *c, mrb_sym mid)
struct RClassmrb_define_class_under (mrb_state *mrb, struct RClass *outer, const char *name, struct RClass *super)
struct RClassmrb_define_module_under (mrb_state *mrb, struct RClass *outer, const char *name)
int mrb_get_args (mrb_state *mrb, const char *format,...)
mrb_value mrb_funcall (mrb_state *, mrb_value, const char *, int,...)
mrb_value mrb_funcall_argv (mrb_state *, mrb_value, mrb_sym, int, mrb_value *)
mrb_value mrb_funcall_with_block (mrb_state *, mrb_value, mrb_sym, int, mrb_value *, mrb_value)
mrb_sym mrb_intern_cstr (mrb_state *, const char *)
mrb_sym mrb_intern2 (mrb_state *, const char *, size_t)
mrb_sym mrb_intern_str (mrb_state *, mrb_value)
mrb_value mrb_check_intern_cstr (mrb_state *, const char *)
mrb_value mrb_check_intern (mrb_state *, const char *, size_t)
mrb_value mrb_check_intern_str (mrb_state *, mrb_value)
const char * mrb_sym2name (mrb_state *, mrb_sym)
const char * mrb_sym2name_len (mrb_state *, mrb_sym, size_t *)
mrb_value mrb_sym2str (mrb_state *, mrb_sym)
mrb_value mrb_str_format (mrb_state *, int, const mrb_value *, mrb_value)
void * mrb_malloc (mrb_state *, size_t)
void * mrb_calloc (mrb_state *, size_t, size_t)
void * mrb_realloc (mrb_state *, void *, size_t)
void * mrb_realloc_simple (mrb_state *, void *, size_t)
void * mrb_malloc_simple (mrb_state *, size_t)
struct RBasicmrb_obj_alloc (mrb_state *, enum mrb_vtype, struct RClass *)
void mrb_free (mrb_state *, void *)
mrb_value mrb_str_new (mrb_state *mrb, const char *p, size_t len)
mrb_value mrb_str_new_cstr (mrb_state *, const char *)
mrb_value mrb_str_new_static (mrb_state *mrb, const char *p, size_t len)
mrb_statemrb_open (void)
mrb_statemrb_open_allocf (mrb_allocf, void *ud)
void mrb_irep_free (mrb_state *, struct mrb_irep *)
void mrb_close (mrb_state *)
mrb_value mrb_top_self (mrb_state *)
mrb_value mrb_run (mrb_state *, struct RProc *, mrb_value)
void mrb_p (mrb_state *, mrb_value)
mrb_int mrb_obj_id (mrb_value obj)
mrb_sym mrb_obj_to_sym (mrb_state *mrb, mrb_value name)
mrb_bool mrb_obj_eq (mrb_state *, mrb_value, mrb_value)
mrb_bool mrb_obj_equal (mrb_state *, mrb_value, mrb_value)
mrb_bool mrb_equal (mrb_state *mrb, mrb_value obj1, mrb_value obj2)
mrb_value mrb_Integer (mrb_state *mrb, mrb_value val)
mrb_value mrb_Float (mrb_state *mrb, mrb_value val)
mrb_value mrb_inspect (mrb_state *mrb, mrb_value obj)
mrb_bool mrb_eql (mrb_state *mrb, mrb_value obj1, mrb_value obj2)
void mrb_garbage_collect (mrb_state *)
void mrb_full_gc (mrb_state *)
void mrb_incremental_gc (mrb_state *)
int mrb_gc_arena_save (mrb_state *)
void mrb_gc_arena_restore (mrb_state *, int)
void mrb_gc_mark (mrb_state *, struct RBasic *)
void mrb_field_write_barrier (mrb_state *, struct RBasic *, struct RBasic *)
void mrb_write_barrier (mrb_state *, struct RBasic *)
mrb_value mrb_check_convert_type (mrb_state *mrb, mrb_value val, enum mrb_vtype type, const char *tname, const char *method)
mrb_value mrb_any_to_s (mrb_state *mrb, mrb_value obj)
const char * mrb_obj_classname (mrb_state *mrb, mrb_value obj)
struct RClassmrb_obj_class (mrb_state *mrb, mrb_value obj)
mrb_value mrb_class_path (mrb_state *mrb, struct RClass *c)
mrb_value mrb_convert_type (mrb_state *mrb, mrb_value val, enum mrb_vtype type, const char *tname, const char *method)
mrb_bool mrb_obj_is_kind_of (mrb_state *mrb, mrb_value obj, struct RClass *c)
mrb_value mrb_obj_inspect (mrb_state *mrb, mrb_value self)
mrb_value mrb_obj_clone (mrb_state *mrb, mrb_value self)
mrb_value mrb_exc_new (mrb_state *mrb, struct RClass *c, const char *ptr, long len)
void mrb_exc_raise (mrb_state *mrb, mrb_value exc)
void mrb_raise (mrb_state *mrb, struct RClass *c, const char *msg)
void mrb_raisef (mrb_state *mrb, struct RClass *c, const char *fmt,...)
void mrb_name_error (mrb_state *mrb, mrb_sym id, const char *fmt,...)
void mrb_warn (mrb_state *mrb, const char *fmt,...)
void mrb_bug (mrb_state *mrb, const char *fmt,...)
void mrb_print_backtrace (mrb_state *mrb)
void mrb_print_verbose_backtrace (mrb_state *mrb)
void mrb_print_error (mrb_state *mrb)
mrb_value mrb_yield (mrb_state *mrb, mrb_value b, mrb_value arg)
mrb_value mrb_yield_argv (mrb_state *mrb, mrb_value b, int argc, mrb_value *argv)
void mrb_gc_protect (mrb_state *mrb, mrb_value obj)
mrb_value mrb_to_int (mrb_state *mrb, mrb_value val)
void mrb_check_type (mrb_state *mrb, mrb_value x, enum mrb_vtype t)
void mrb_define_alias (mrb_state *mrb, struct RClass *klass, const char *name1, const char *name2)
const char * mrb_class_name (mrb_state *mrb, struct RClass *klass)
void mrb_define_global_const (mrb_state *mrb, const char *name, mrb_value val)
mrb_value mrb_block_proc (void)
mrb_value mrb_attr_get (mrb_state *mrb, mrb_value obj, mrb_sym id)
mrb_bool mrb_respond_to (mrb_state *mrb, mrb_value obj, mrb_sym mid)
mrb_bool mrb_obj_is_instance_of (mrb_state *mrb, mrb_value obj, struct RClass *c)
struct mrb_poolmrb_pool_open (mrb_state *)
void mrb_pool_close (struct mrb_pool *)
void * mrb_pool_alloc (struct mrb_pool *, size_t)
void * mrb_pool_realloc (struct mrb_pool *, void *, size_t oldlen, size_t newlen)
mrb_bool mrb_pool_can_realloc (struct mrb_pool *, void *, size_t)
void * mrb_alloca (mrb_state *mrb, size_t)

Macro Definition Documentation

#define ARGS_ANY ( )    MRB_ARGS_ANY()

Definition at line 218 of file mruby.h.

#define ARGS_BLOCK ( )    MRB_ARGS_BLOCK()

Definition at line 217 of file mruby.h.

#define ARGS_KEY (   n1,
  n2 
)    MRB_ARGS_KEY(n1,n2)

Definition at line 216 of file mruby.h.

#define ARGS_NONE ( )    MRB_ARGS_NONE()

Definition at line 219 of file mruby.h.

#define ARGS_OPT (   n)    MRB_ARGS_OPT(n)

Definition at line 213 of file mruby.h.

#define ARGS_POST (   n)    MRB_ARGS_POST()

Definition at line 215 of file mruby.h.

#define ARGS_REQ (   n)    MRB_ARGS_REQ(n)

Definition at line 212 of file mruby.h.

#define ARGS_REST ( )    MRB_ARGS_REST()

Definition at line 214 of file mruby.h.

#define E_ARGUMENT_ERROR   (mrb_class_get(mrb, "ArgumentError"))

Definition at line 336 of file mruby.h.

#define E_FLOATDOMAIN_ERROR   (mrb_class_get(mrb, "FloatDomainError"))

Definition at line 347 of file mruby.h.

#define E_INDEX_ERROR   (mrb_class_get(mrb, "IndexError"))

Definition at line 337 of file mruby.h.

#define E_KEY_ERROR   (mrb_class_get(mrb, "KeyError"))

Definition at line 349 of file mruby.h.

#define E_LOCALJUMP_ERROR   (mrb_class_get(mrb, "LocalJumpError"))

Definition at line 343 of file mruby.h.

#define E_NAME_ERROR   (mrb_class_get(mrb, "NameError"))

Definition at line 339 of file mruby.h.

#define E_NOMETHOD_ERROR   (mrb_class_get(mrb, "NoMethodError"))

Definition at line 340 of file mruby.h.

#define E_NOTIMP_ERROR   (mrb_class_get(mrb, "NotImplementedError"))

Definition at line 346 of file mruby.h.

#define E_RANGE_ERROR   (mrb_class_get(mrb, "RangeError"))

Definition at line 338 of file mruby.h.

#define E_REGEXP_ERROR   (mrb_class_get(mrb, "RegexpError"))

Definition at line 344 of file mruby.h.

#define E_RUNTIME_ERROR   (mrb_class_get(mrb, "RuntimeError"))

Definition at line 334 of file mruby.h.

#define E_SCRIPT_ERROR   (mrb_class_get(mrb, "ScriptError"))

Definition at line 341 of file mruby.h.

#define E_SYNTAX_ERROR   (mrb_class_get(mrb, "SyntaxError"))

Definition at line 342 of file mruby.h.

#define E_TYPE_ERROR   (mrb_class_get(mrb, "TypeError"))

Definition at line 335 of file mruby.h.

#define ISALNUM (   c)    (ISASCII(c) && isalnum((int)(unsigned char)(c)))

Definition at line 309 of file mruby.h.

#define ISALPHA (   c)    (ISASCII(c) && isalpha((int)(unsigned char)(c)))

Definition at line 310 of file mruby.h.

#define ISASCII (   c)    1

Definition at line 304 of file mruby.h.

#define ISDIGIT (   c)    (ISASCII(c) && isdigit((int)(unsigned char)(c)))

Definition at line 311 of file mruby.h.

#define ISLOWER (   c)    (ISASCII(c) && islower((int)(unsigned char)(c)))

Definition at line 308 of file mruby.h.

#define ISPRINT (   c)    (ISASCII(c) && isprint((int)(unsigned char)(c)))

Definition at line 305 of file mruby.h.

#define ISSPACE (   c)    (ISASCII(c) && isspace((int)(unsigned char)(c)))

Definition at line 306 of file mruby.h.

#define ISUPPER (   c)    (ISASCII(c) && isupper((int)(unsigned char)(c)))

Definition at line 307 of file mruby.h.

#define ISXDIGIT (   c)    (ISASCII(c) && isxdigit((int)(unsigned char)(c)))

Definition at line 312 of file mruby.h.

#define MRB_ARENA_SIZE   100

Definition at line 49 of file mruby.h.

#define MRB_ARGS_ANY ( )    ARGS_REST()

Definition at line 207 of file mruby.h.

#define MRB_ARGS_ARG (   n1,
  n2 
)    (MRB_ARGS_REQ(n1)|MRB_ARGS_OPT(n2))

Definition at line 195 of file mruby.h.

#define MRB_ARGS_BLOCK ( )    ((mrb_aspec)1)

Definition at line 204 of file mruby.h.

#define MRB_ARGS_KEY (   n1,
  n2 
)    ((mrb_aspec)((((n1)&0x1f) << 2) | ((n2)?(1<<1):0)))

Definition at line 202 of file mruby.h.

#define MRB_ARGS_NONE ( )    ((mrb_aspec)0)

Definition at line 209 of file mruby.h.

#define MRB_ARGS_OPT (   n)    ((mrb_aspec)((n)&0x1f) << 13)

Definition at line 193 of file mruby.h.

#define MRB_ARGS_POST (   n)    ((mrb_aspec)((n)&0x1f) << 7)

Definition at line 200 of file mruby.h.

#define MRB_ARGS_REQ (   n)    ((mrb_aspec)((n)&0x1f) << 18)

Definition at line 191 of file mruby.h.

#define MRB_ARGS_REST ( )    ((mrb_aspec)(1 << 12))

Definition at line 198 of file mruby.h.

#define mrb_assert (   p)    ((void)0)

Definition at line 388 of file mruby.h.

#define mrb_class_new_instance (   mrb,
  argc,
  argv,
 
)    mrb_obj_new(mrb,c,argc,argv)

Definition at line 176 of file mruby.h.

#define mrb_field_write_barrier_value (   mrb,
  obj,
  val 
)
Value:
do{\
if ((val.tt >= MRB_TT_HAS_BASIC)) mrb_field_write_barrier((mrb), (obj), mrb_basic_ptr(val));\
} while (0)

Definition at line 286 of file mruby.h.

#define mrb_gc_mark_value (   mrb,
  val 
)
Value:
do {\
if (mrb_type(val) >= MRB_TT_HAS_BASIC) mrb_gc_mark((mrb), mrb_basic_ptr(val));\
} while (0)

Definition at line 282 of file mruby.h.

#define TOLOWER (   c)    (ISASCII(c) ? tolower((int)(unsigned char)(c)) : (c))

Definition at line 314 of file mruby.h.

#define TOUPPER (   c)    (ISASCII(c) ? toupper((int)(unsigned char)(c)) : (c))

Definition at line 313 of file mruby.h.

Typedef Documentation

typedef enum call_type call_type
typedef void*(* mrb_allocf)(struct mrb_state *mrb, void *, size_t, void *ud)

Definition at line 46 of file mruby.h.

typedef uint32_t mrb_aspec

Definition at line 42 of file mruby.h.

typedef uint32_t mrb_code

Definition at line 41 of file mruby.h.

typedef mrb_value(* mrb_func_t)(mrb_state *mrb, mrb_value)

Definition at line 162 of file mruby.h.

typedef struct mrb_pool mrb_pool

Definition at line 376 of file mruby.h.

typedef struct mrb_state mrb_state

Enumeration Type Documentation

enum call_type
Enumerator:
CALL_PUBLIC 
CALL_FCALL 
CALL_VCALL 
CALL_TYPE_MAX 

Definition at line 358 of file mruby.h.

enum gc_state
Enumerator:
GC_STATE_NONE 
GC_STATE_MARK 
GC_STATE_SWEEP 

Definition at line 91 of file mruby.h.

Enumerator:
MRB_FIBER_CREATED 
MRB_FIBER_RUNNING 
MRB_FIBER_RESUMED 
MRB_FIBER_TERMINATED 

Definition at line 66 of file mruby.h.

Function Documentation

void* mrb_alloca ( mrb_state mrb,
size_t   
)

Definition at line 71 of file state.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_any_to_s ( mrb_state mrb,
mrb_value  obj 
)

Definition at line 431 of file object.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_attr_get ( mrb_state mrb,
mrb_value  obj,
mrb_sym  id 
)

Definition at line 1104 of file variable.c.

Here is the call graph for this function:

mrb_value mrb_block_proc ( void  )

Definition at line 127 of file etc.c.

void mrb_bug ( mrb_state mrb,
const char *  fmt,
  ... 
)

Definition at line 333 of file error.c.

Here is the call graph for this function:

void* mrb_calloc ( mrb_state ,
size_t  ,
size_t   
)

Definition at line 221 of file gc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_check_convert_type ( mrb_state mrb,
mrb_value  val,
enum mrb_vtype  type,
const char *  tname,
const char *  method 
)

Definition at line 341 of file object.c.

Here is the caller graph for this function:

mrb_value mrb_check_intern ( mrb_state ,
const char *  ,
size_t   
)

Definition at line 76 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_check_intern_cstr ( mrb_state ,
const char *   
)

Definition at line 93 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_check_intern_str ( mrb_state ,
mrb_value   
)

Definition at line 99 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_check_to_integer ( mrb_state mrb,
mrb_value  val,
const char *  method 
)

Definition at line 314 of file object.c.

void mrb_check_type ( mrb_state mrb,
mrb_value  x,
enum mrb_vtype  t 
)

Definition at line 381 of file object.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_bool mrb_class_defined ( mrb_state mrb,
const char *  name 
)

Definition at line 207 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct RClass* mrb_class_get ( mrb_state mrb,
const char *  name 
)
read

Definition at line 228 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct RClass* mrb_class_get_under ( mrb_state mrb,
struct RClass outer,
const char *  name 
)
read

Definition at line 234 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

const char* mrb_class_name ( mrb_state mrb,
struct RClass klass 
)

Definition at line 1233 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct RClass* mrb_class_new ( mrb_state mrb,
struct RClass super 
)
read

Creates a new class.

Parameters
supera class from which the new class derives.
Exceptions
TypeErrorsuper is not inheritable.
TypeErrorsuper is the Class class.

Definition at line 1277 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_class_path ( mrb_state mrb,
struct RClass c 
)

Definition at line 1194 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_close ( mrb_state )

Definition at line 134 of file state.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_convert_type ( mrb_state mrb,
mrb_value  val,
enum mrb_vtype  type,
const char *  tname,
const char *  method 
)

Definition at line 327 of file object.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_define_alias ( mrb_state mrb,
struct RClass klass,
const char *  name1,
const char *  name2 
)

Defines an alias of a method.

Parameters
klassthe class which the original method belongs to
name1a new name for the method
name2the original name of the method

Definition at line 1340 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct RClass* mrb_define_class ( mrb_state ,
const char *  ,
struct RClass  
)
read

Definition at line 162 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_define_class_method ( mrb_state ,
struct RClass ,
const char *  ,
mrb_func_t  ,
mrb_aspec   
)

Definition at line 959 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct RClass* mrb_define_class_under ( mrb_state mrb,
struct RClass outer,
const char *  name,
struct RClass super 
)
read

Defines a class under the namespace of outer.

Parameters
outera class which contains the new class.
idname of the new class
supera class from which the new class will derive. NULL means Object class.
Returns
the created class
Exceptions
TypeErrorif the constant name name is already taken but the constant is not a Class.
NameErrorif the class is already defined but the class can not be reopened because its superclass is not super.
Postcondition
top-level constant named name refers the returned class.
Note
if a class named name is already defined and its superclass is super, the function just returns the defined class.

Definition at line 256 of file class.c.

Here is the call graph for this function:

void mrb_define_const ( mrb_state ,
struct RClass ,
const char *  name,
mrb_value   
)

Definition at line 957 of file variable.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_define_global_const ( mrb_state mrb,
const char *  name,
mrb_value  val 
)

Definition at line 963 of file variable.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_define_method ( mrb_state ,
struct RClass ,
const char *  ,
mrb_func_t  ,
mrb_aspec   
)

Definition at line 320 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct RClass* mrb_define_module ( mrb_state ,
const char *   
)
read

Definition at line 108 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_define_module_function ( mrb_state ,
struct RClass ,
const char *  ,
mrb_func_t  ,
mrb_aspec   
)

Definition at line 965 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct RClass* mrb_define_module_under ( mrb_state mrb,
struct RClass outer,
const char *  name 
)
read

Definition at line 278 of file class.c.

Here is the call graph for this function:

void mrb_define_singleton_method ( mrb_state ,
struct RObject ,
const char *  ,
mrb_func_t  ,
mrb_aspec   
)

Definition at line 952 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_bool mrb_eql ( mrb_state mrb,
mrb_value  obj1,
mrb_value  obj2 
)

Definition at line 589 of file object.c.

Here is the call graph for this function:

mrb_bool mrb_equal ( mrb_state mrb,
mrb_value  obj1,
mrb_value  obj2 
)

Definition at line 44 of file object.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_exc_new ( mrb_state mrb,
struct RClass c,
const char *  ptr,
long  len 
)

Definition at line 22 of file error.c.

Here is the call graph for this function:

void mrb_exc_raise ( mrb_state mrb,
mrb_value  exc 
)

Definition at line 216 of file error.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_field_write_barrier ( mrb_state ,
struct RBasic ,
struct RBasic  
)

Definition at line 1055 of file gc.c.

Here is the caller graph for this function:

mrb_value mrb_Float ( mrb_state mrb,
mrb_value  val 
)

Definition at line 562 of file object.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_free ( mrb_state ,
void *   
)

Definition at line 243 of file gc.c.

Here is the caller graph for this function:

void mrb_full_gc ( mrb_state )

Definition at line 1004 of file gc.c.

Here is the caller graph for this function:

mrb_value mrb_funcall ( mrb_state ,
mrb_value  ,
const char *  ,
int  ,
  ... 
)

Definition at line 283 of file vm.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_funcall_argv ( mrb_state ,
mrb_value  ,
mrb_sym  ,
int  ,
mrb_value  
)

Definition at line 407 of file vm.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_funcall_with_block ( mrb_state ,
mrb_value  ,
mrb_sym  ,
int  ,
mrb_value ,
mrb_value   
)

Definition at line 318 of file vm.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_garbage_collect ( mrb_state )

Definition at line 1032 of file gc.c.

Here is the call graph for this function:

void mrb_gc_arena_restore ( mrb_state ,
int   
)

Definition at line 1044 of file gc.c.

Here is the caller graph for this function:

int mrb_gc_arena_save ( mrb_state )

Definition at line 1038 of file gc.c.

Here is the caller graph for this function:

void mrb_gc_mark ( mrb_state ,
struct RBasic  
)

Definition at line 569 of file gc.c.

Here is the caller graph for this function:

void mrb_gc_protect ( mrb_state mrb,
mrb_value  obj 
)

Definition at line 382 of file gc.c.

Here is the caller graph for this function:

int mrb_get_args ( mrb_state mrb,
const char *  format,
  ... 
)

Definition at line 398 of file class.c.

Here is the call graph for this function:

void mrb_include_module ( mrb_state ,
struct RClass ,
struct RClass  
)

Definition at line 695 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_incremental_gc ( mrb_state )

Definition at line 966 of file gc.c.

Here is the caller graph for this function:

mrb_value mrb_inspect ( mrb_state mrb,
mrb_value  obj 
)

Definition at line 583 of file object.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_instance_new ( mrb_state mrb,
mrb_value  cv 
)

Definition at line 1040 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_Integer ( mrb_state mrb,
mrb_value  val 
)

Definition at line 556 of file object.c.

Here is the caller graph for this function:

mrb_sym mrb_intern2 ( mrb_state ,
const char *  ,
size_t   
)

Definition at line 38 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_sym mrb_intern_cstr ( mrb_state ,
const char *   
)

Definition at line 64 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_sym mrb_intern_str ( mrb_state ,
mrb_value   
)

Definition at line 70 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_irep_free ( mrb_state ,
struct mrb_irep  
)

Definition at line 110 of file state.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* mrb_malloc ( mrb_state ,
size_t   
)

Definition at line 209 of file gc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* mrb_malloc_simple ( mrb_state ,
size_t   
)

Definition at line 215 of file gc.c.

Here is the call graph for this function:

struct RClass* mrb_module_new ( mrb_state mrb)
read

Creates a new module.

Definition at line 1297 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_name_error ( mrb_state mrb,
mrb_sym  id,
const char *  fmt,
  ... 
)

Definition at line 302 of file error.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct RBasic* mrb_obj_alloc ( mrb_state ,
enum  mrb_vtype,
struct RClass  
)
read

Definition at line 389 of file gc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct RClass* mrb_obj_class ( mrb_state mrb,
mrb_value  obj 
)
read

Definition at line 1320 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

const char* mrb_obj_classname ( mrb_state mrb,
mrb_value  obj 
)

Definition at line 1245 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_obj_clone ( mrb_state mrb,
mrb_value  self 
)

Definition at line 342 of file kernel.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_obj_dup ( mrb_state mrb,
mrb_value  obj 
)

Definition at line 378 of file kernel.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_bool mrb_obj_eq ( mrb_state ,
mrb_value  ,
mrb_value   
)

Definition at line 15 of file object.c.

Here is the caller graph for this function:

mrb_bool mrb_obj_equal ( mrb_state ,
mrb_value  ,
mrb_value   
)

Definition at line 37 of file object.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_int mrb_obj_id ( mrb_value  obj)

Definition at line 149 of file etc.c.

Here is the caller graph for this function:

mrb_value mrb_obj_inspect ( mrb_state mrb,
mrb_value  self 
)

Definition at line 53 of file kernel.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_bool mrb_obj_is_instance_of ( mrb_state mrb,
mrb_value  obj,
struct RClass c 
)

Definition at line 525 of file kernel.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_bool mrb_obj_is_kind_of ( mrb_state mrb,
mrb_value  obj,
struct RClass c 
)

Definition at line 472 of file object.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_obj_new ( mrb_state mrb,
struct RClass c,
int  argc,
mrb_value argv 
)

Definition at line 1054 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_bool mrb_obj_respond_to ( struct RClass c,
mrb_sym  mid 
)

Definition at line 1164 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_sym mrb_obj_to_sym ( mrb_state mrb,
mrb_value  name 
)

Definition at line 96 of file etc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_state* mrb_open ( void  )

Definition at line 99 of file state.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_state* mrb_open_allocf ( mrb_allocf  ,
void *  ud 
)

Definition at line 26 of file state.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_p ( mrb_state ,
mrb_value   
)

Definition at line 28 of file print.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* mrb_pool_alloc ( struct mrb_pool ,
size_t   
)

Definition at line 94 of file pool.c.

Here is the caller graph for this function:

mrb_bool mrb_pool_can_realloc ( struct mrb_pool ,
void *  ,
size_t   
)

Definition at line 122 of file pool.c.

void mrb_pool_close ( struct mrb_pool )

Definition at line 63 of file pool.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct mrb_pool* mrb_pool_open ( mrb_state )
read

Definition at line 50 of file pool.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* mrb_pool_realloc ( struct mrb_pool ,
void *  ,
size_t  oldlen,
size_t  newlen 
)

Definition at line 143 of file pool.c.

Here is the call graph for this function:

void mrb_print_backtrace ( mrb_state mrb)

Definition at line 127 of file backtrace.c.

Here is the caller graph for this function:

void mrb_print_error ( mrb_state mrb)

Definition at line 38 of file print.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_print_verbose_backtrace ( mrb_state mrb)
void mrb_raise ( mrb_state mrb,
struct RClass c,
const char *  msg 
)

Definition at line 228 of file error.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_raisef ( mrb_state mrb,
struct RClass c,
const char *  fmt,
  ... 
)

Definition at line 290 of file error.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* mrb_realloc ( mrb_state ,
void *  ,
size_t   
)

Definition at line 187 of file gc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* mrb_realloc_simple ( mrb_state ,
void *  ,
size_t   
)

Definition at line 172 of file gc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_bool mrb_respond_to ( mrb_state mrb,
mrb_value  obj,
mrb_sym  mid 
)

Definition at line 1188 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_run ( mrb_state ,
struct RProc ,
mrb_value   
)

Definition at line 550 of file vm.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_singleton_class ( mrb_state ,
mrb_value   
)

Definition at line 925 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_str_format ( mrb_state ,
int  ,
const mrb_value ,
mrb_value   
)

Definition at line 492 of file sprintf.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_str_new ( mrb_state mrb,
const char *  p,
size_t  len 
)

Definition at line 233 of file string.c.

Here is the caller graph for this function:

mrb_value mrb_str_new_cstr ( mrb_state ,
const char *   
)

Definition at line 249 of file string.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_str_new_static ( mrb_state mrb,
const char *  p,
size_t  len 
)

Definition at line 270 of file string.c.

Here is the caller graph for this function:

const char* mrb_sym2name ( mrb_state ,
mrb_sym   
)

Definition at line 395 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

const char* mrb_sym2name_len ( mrb_state ,
mrb_sym  ,
size_t *   
)

Definition at line 106 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_sym2str ( mrb_state ,
mrb_sym   
)

Definition at line 380 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_to_int ( mrb_state mrb,
mrb_value  val 
)

Definition at line 509 of file object.c.

mrb_value mrb_top_self ( mrb_state )

Definition at line 190 of file state.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_undef_class_method ( mrb_state ,
struct RClass ,
const char *   
)

Definition at line 1442 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_undef_method ( mrb_state ,
struct RClass ,
const char *   
)

Definition at line 1436 of file class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_warn ( mrb_state mrb,
const char *  fmt,
  ... 
)

Definition at line 318 of file error.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_write_barrier ( mrb_state ,
struct RBasic  
)

Definition at line 1082 of file gc.c.

Here is the caller graph for this function:

mrb_value mrb_yield ( mrb_state mrb,
mrb_value  b,
mrb_value  arg 
)

Definition at line 467 of file vm.c.

Here is the call graph for this function:

mrb_value mrb_yield_argv ( mrb_state mrb,
mrb_value  b,
int  argc,
mrb_value argv 
)

Definition at line 459 of file vm.c.

Here is the call graph for this function: