Ruby  2.5.0dev(2017-10-22revision60238)
vm_debug.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  vm_debug.h - YARV Debug function interface
4 
5  $Author$
6  created at: 04/08/25 02:33:49 JST
7 
8  Copyright (C) 2004-2007 Koichi Sasada
9 
10 **********************************************************************/
11 
12 #ifndef RUBY_DEBUG_H
13 #define RUBY_DEBUG_H
14 
15 #include "ruby/ruby.h"
16 #include "node.h"
17 
19 
20 #define dpv(h,v) ruby_debug_print_value(-1, 0, (h), (v))
21 #define dp(v) ruby_debug_print_value(-1, 0, "", (v))
22 #define dpi(i) ruby_debug_print_id(-1, 0, "", (i))
23 #define dpn(n) ruby_debug_print_node(-1, 0, "", (n))
24 
25 #define bp() ruby_debug_breakpoint()
26 
27 VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v);
28 ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id);
29 NODE *ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node);
30 int ruby_debug_print_indent(int level, int debug_level, int indent_level);
31 void ruby_debug_breakpoint(void);
32 void ruby_debug_gc_check_func(void);
33 void ruby_set_debug_option(const char *str);
34 
36 
37 #endif /* RUBY_DEBUG_H */
void ruby_debug_gc_check_func(void)
void ruby_set_debug_option(const char *str)
Definition: debug.c:215
NODE * ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node)
Definition: debug.c:116
Definition: node.h:233
#define level
#define RUBY_SYMBOL_EXPORT_END
Definition: missing.h:49
unsigned long ID
Definition: ruby.h:86
unsigned long VALUE
Definition: ruby.h:85
#define RUBY_SYMBOL_EXPORT_BEGIN
Definition: missing.h:48
int ruby_debug_print_indent(int level, int debug_level, int indent_level)
Definition: debug.c:65
VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v)
Definition: debug.c:87
void ruby_debug_breakpoint(void)
Definition: debug.c:126
ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id)
Definition: debug.c:106