Ruby 2.1.5p273(2014-11-13revision48405)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

vm_debug.h
Go to the documentation of this file.
1 /**********************************************************************
2
3 vm_debug.h - YARV Debug function interface
4
5 $Author: nobu $
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
18 RUBY_SYMBOL_EXPORT_BEGIN
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
35 RUBY_SYMBOL_EXPORT_END
36
37 #endif /* RUBY_DEBUG_H */
ruby_debug_gc_check_func
void ruby_debug_gc_check_func(void)
node.h
ruby.h
ruby_set_debug_option
void ruby_set_debug_option(const char *str)
Definition: debug.c:159
ruby_debug_print_node
NODE * ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node)
Definition: debug.c:124
RNode
Definition: node.h:239
level
#define level
RUBY_SYMBOL_EXPORT_END
#define RUBY_SYMBOL_EXPORT_END
Definition: missing.h:39
ID
unsigned long ID
Definition: ruby.h:89
VALUE
unsigned long VALUE
Definition: ruby.h:88
RUBY_SYMBOL_EXPORT_BEGIN
#define RUBY_SYMBOL_EXPORT_BEGIN
Definition: missing.h:38
ruby_debug_print_indent
int ruby_debug_print_indent(int level, int debug_level, int indent_level)
Definition: debug.c:75
ruby_debug_print_value
VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v)
Definition: debug.c:95
ruby_debug_breakpoint
void ruby_debug_breakpoint(void)
Definition: debug.c:134
ruby_debug_print_id
ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id)
Definition: debug.c:114