Ruby
3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
|
Go to the source code of this file.
Macros | |
#define | LIKELY(x) RB_LIKELY(x) |
#define | UNLIKELY(x) RB_UNLIKELY(x) |
#define | numberof(array) ((int)(sizeof(array) / sizeof((array)[0]))) |
#define | roomof(x, y) (((x) + (y) - 1) / (y)) |
#define | type_roomof(x, y) roomof(sizeof(x), sizeof(y)) |
#define | ACCESS_ONCE(type, x) (*((volatile type *)&(x))) |
#define | rb_ary_new_from_args(...) rb_nonexistent_symbol(__VA_ARGS__) |
#define | rb_io_fptr_finalize(...) rb_nonexistent_symbol(__VA_ARGS__) |
#define | rb_fstring_cstr(...) rb_nonexistent_symbol(__VA_ARGS__) |
#define | rb_sym_intern_ascii_cstr(...) rb_nonexistent_symbol(__VA_ARGS__) |
#define | rb_funcallv(...) rb_nonexistent_symbol(__VA_ARGS__) |
#define | rb_method_basic_definition_p(...) rb_nonexistent_symbol(__VA_ARGS__) |
#define | rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING) |
#define | rp_m(msg, obj) |
#define | bp() ruby_debug_breakpoint() |
#define | RBOOL(v) ((v) ? Qtrue : Qfalse) |
Functions | |
void | rb_obj_info_dump (VALUE obj) |
void | rb_obj_info_dump_loc (VALUE obj, const char *file, int line, const char *func) |
void | ruby_debug_breakpoint (void) |
PRINTF_ARGS (void ruby_debug_printf(const char *,...), 1, 2) | |
Definition in file internal.h.
#define ACCESS_ONCE | ( | type, | |
x | |||
) | (*((volatile type *)&(x))) |
Definition at line 27 of file internal.h.
#define bp | ( | ) | ruby_debug_breakpoint() |
Definition at line 105 of file internal.h.
#define LIKELY | ( | x | ) | RB_LIKELY(x) |
Definition at line 19 of file internal.h.
#define numberof | ( | array | ) | ((int)(sizeof(array) / sizeof((array)[0]))) |
Definition at line 22 of file internal.h.
#define rb_ary_new_from_args | ( | ... | ) | rb_nonexistent_symbol(__VA_ARGS__) |
Definition at line 65 of file internal.h.
#define rb_fstring_cstr | ( | ... | ) | rb_nonexistent_symbol(__VA_ARGS__) |
Definition at line 71 of file internal.h.
#define rb_funcallv | ( | ... | ) | rb_nonexistent_symbol(__VA_ARGS__) |
Definition at line 77 of file internal.h.
#define rb_io_fptr_finalize | ( | ... | ) | rb_nonexistent_symbol(__VA_ARGS__) |
Definition at line 68 of file internal.h.
#define rb_method_basic_definition_p | ( | ... | ) | rb_nonexistent_symbol(__VA_ARGS__) |
Definition at line 78 of file internal.h.
#define rb_sym_intern_ascii_cstr | ( | ... | ) | rb_nonexistent_symbol(__VA_ARGS__) |
Definition at line 74 of file internal.h.
Definition at line 107 of file internal.h.
Definition at line 23 of file internal.h.
#define rp | ( | obj | ) | rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING) |
Definition at line 95 of file internal.h.
#define rp_m | ( | msg, | |
obj | |||
) |
Definition at line 98 of file internal.h.
Definition at line 24 of file internal.h.
#define UNLIKELY | ( | x | ) | RB_UNLIKELY(x) |
Definition at line 20 of file internal.h.
PRINTF_ARGS | ( | void | ruby_debug_printfconst char *,..., |
1 | , | ||
2 | |||
) |
void rb_obj_info_dump | ( | VALUE | obj | ) |
Definition at line 13374 of file gc.c.
References rb_raw_obj_info().
Definition at line 13381 of file gc.c.
References rb_raw_obj_info().