* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git] / debug.h
blob5c4b19a78b32a6fb742f7dd457f32437ff9756a3
1 /**********************************************************************
3 debug.h - YARV Debug function interface
5 $Author$
6 created at: 04/08/25 02:33:49 JST
8 Copyright (C) 2004-2007 Koichi Sasada
10 **********************************************************************/
12 #ifndef RUBY_DEBUG_H
13 #define RUBY_DEBUG_H
15 #include "ruby/ruby.h"
16 #include "ruby/node.h"
18 #define dpv(h,v) ruby_debug_print_value(-1, 0, h, v)
19 #define dp(v) ruby_debug_print_value(-1, 0, "", v)
20 #define dpi(i) ruby_debug_print_id(-1, 0, "", i)
21 #define dpn(n) ruby_debug_print_node(-1, 0, "", n)
23 #define bp() ruby_debug_breakpoint()
25 VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v);
26 ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id);
27 NODE *ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node);
28 int ruby_debug_print_indent(int level, int debug_level, int indent_level);
29 void ruby_debug_breakpoint(void);
30 void ruby_debug_gc_check_func(void);
32 #endif /* RUBY_DEBUG_H */