Ruby  2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)
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 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_gc_check_func(void);
30 void ruby_set_debug_option(const char *str);
31 
33 
34 #endif /* RUBY_DEBUG_H */
ID
unsigned long ID
Definition: ruby.h:103
RUBY_SYMBOL_EXPORT_END
#define RUBY_SYMBOL_EXPORT_END
Definition: missing.h:49
ruby_set_debug_option
void ruby_set_debug_option(const char *str)
Definition: debug.c:226
ruby_debug_gc_check_func
void ruby_debug_gc_check_func(void)
VALUE
unsigned long VALUE
Definition: ruby.h:102
ruby.h
ruby_debug_print_value
VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v)
Definition: debug.c:96
v
int VALUE v
Definition: rb_mjit_min_header-2.7.0.h:12332
ruby_debug_print_indent
int ruby_debug_print_indent(int level, int debug_level, int indent_level)
Definition: debug.c:74
node.h
ruby_debug_print_id
ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id)
Definition: debug.c:115
ruby_debug_print_node
NODE * ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node)
Definition: debug.c:125
RUBY_SYMBOL_EXPORT_BEGIN
#define RUBY_SYMBOL_EXPORT_BEGIN
Definition: missing.h:48
str
char str[HTML_ESCAPE_MAX_LEN+1]
Definition: escape.c:18
RNode
Definition: node.h:149