2#define RUBY_INTERNAL_H 1
19#define LIKELY(x) RB_LIKELY(x)
20#define UNLIKELY(x) RB_UNLIKELY(x)
22#define numberof(array) ((int)(sizeof(array) / sizeof((array)[0])))
23#define roomof(x, y) (((x) + (y) - 1) / (y))
24#define type_roomof(x, y) roomof(sizeof(x), sizeof(y))
27#define ACCESS_ONCE(type,x) (*((volatile type *)&(x)))
53#undef ROBJECT_IV_INDEX_TBL
65#define rb_ary_new_from_args(...) rb_nonexistent_symbol(__VA_ARGS__)
68#define rb_io_fptr_finalize(...) rb_nonexistent_symbol(__VA_ARGS__)
71#define rb_fstring_cstr(...) rb_nonexistent_symbol(__VA_ARGS__)
74#define rb_sym_intern_ascii_cstr(...) rb_nonexistent_symbol(__VA_ARGS__)
77#define rb_funcallv(...) rb_nonexistent_symbol(__VA_ARGS__)
78#define rb_method_basic_definition_p(...) rb_nonexistent_symbol(__VA_ARGS__)
89RUBY_SYMBOL_EXPORT_BEGIN
95#define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
98#define rp_m(msg, obj) do { \
99 fprintf(stderr, "%s", (msg)); \
100 rb_obj_info_dump((VALUE)obj); \
105#define bp() ruby_debug_breakpoint()
#define PRINTF_ARGS(decl, string_index, first_to_check)
Thin wrapper to ruby/config.h.
void ruby_debug_breakpoint(void)
void ruby_debug_printf(const char *,...)
void rb_obj_info_dump_loc(VALUE obj, const char *file, int line, const char *func)
void rb_obj_info_dump(VALUE obj)