Header: mruby/value.h
Overview
mruby Symbol. You can create an mrb_sym by simply using mrb_str_intern() or mrb_intern_cstr()
Function Summary collapse
-
double mrb_float_read(const char*, char*)
-
int mrb_msvc_vsnprintf(char *, size_t, const char *, va_list)
-
int mrb_msvc_snprintf(char *, size_t, const char *, ...)
-
mrb_value mrb_float_value(struct mrb_state *, mrb_float)
-
mrb_value mrb_cptr_value(struct mrb_state *, void *)
-
mrb_value mrb_fixnum_value(mrb_int)
Returns a fixnum in Ruby.
-
mrb_value mrb_symbol_value(mrb_sym)
-
mrb_value mrb_obj_value(void *)
-
mrb_value mrb_nil_value(void)
Get a nil mrb_value object.
-
mrb_value mrb_false_value(void)
Returns false in Ruby.
-
mrb_value mrb_true_value(void)
Returns true in Ruby.
-
mrb_value mrb_bool_value(mrb_bool)
-
mrb_value mrb_undef_value(void)
Define Summary
- #define MRUBY_VALUE_H
- #define PRIo64
- #define PRId64
- #define PRIu64
- #define PRIx64
- #define PRIo16
- #define PRId16
- #define PRIu16
- #define PRIx16
- #define PRIo32
- #define PRId32
- #define PRIu32
- #define PRIx32
- #define MRB_INT_BIT
- #define MRB_INT_MIN
- #define MRB_INT_MAX
- #define MRB_PRIo
- #define MRB_PRId
- #define MRB_PRIx
- #define MRB_ENDIAN_LOHI
- #define vsnprintf
- #define snprintf
- #define isfinite
- #define isnan
- #define isinf
- #define signbit
- #define INFINITY
- #define NAN
- #define MRB_SYMBOL_BITSIZE
- #define MRB_SYMBOL_MAX
- #define mrb_immediate_p
- #define mrb_fixnum_p
- #define mrb_symbol_p
- #define mrb_undef_p
- #define mrb_nil_p
- #define mrb_false_p
- #define mrb_true_p
- #define mrb_float_p
- #define mrb_array_p
- #define mrb_string_p
- #define mrb_hash_p
- #define mrb_cptr_p
- #define mrb_exception_p
- #define mrb_free_p
- #define mrb_object_p
- #define mrb_class_p
- #define mrb_module_p
- #define mrb_iclass_p
- #define mrb_sclass_p
- #define mrb_proc_p
- #define mrb_range_p
- #define mrb_file_p
- #define mrb_env_p
- #define mrb_data_p
- #define mrb_fiber_p
- #define mrb_istruct_p
- #define mrb_break_p
- #define mrb_bool
- #define mrb_test
- #define MRB_USE_LINK_TIME_RO_DATA_P
- #define mrb_ro_data_p
Typedef Summary
- typedef mrb_sym
mruby Symbol. You can create an mrb_sym by simply using mrb_str_intern() or mrb_intern_cstr()
- typedef mrb_int
- typedef mrb_float
- typedef mrb_value
This typedef is abstract.
MRuby value boxing.
Actual implementation depends on configured boxing type.
Function Details
double mrb_float_read(const char* , char* )
int mrb_msvc_vsnprintf(char * s, size_t n, const char * format, va_list arg)
int mrb_msvc_snprintf(char * s, size_t n, const char * format, ... )
mrb_value mrb_float_value(struct mrb_state * mrb, mrb_float f)
mrb_value mrb_cptr_value(struct mrb_state * mrb, void * p)
mrb_value mrb_fixnum_value(mrb_int i)
Returns a fixnum in Ruby.
Takes an integer and boxes it into an mrb_value
mrb_value mrb_symbol_value(mrb_sym i)
mrb_value mrb_obj_value(void * p)
mrb_value mrb_nil_value(void)
Get a nil mrb_value object.
mrb_value mrb_false_value(void)
Returns false in Ruby.
mrb_value mrb_true_value(void)
Returns true in Ruby.