Ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5ad0e4688e963d9de019557c78feed9)
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
25VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v);
26ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id);
27NODE *ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node);
28int ruby_debug_print_indent(int level, int debug_level, int indent_level);
30void ruby_set_debug_option(const char *str);
31
33
34#endif /* RUBY_DEBUG_H */
char str[HTML_ESCAPE_MAX_LEN+1]
Definition: escape.c:18
#define RUBY_SYMBOL_EXPORT_BEGIN
unsigned long VALUE
#define RUBY_SYMBOL_EXPORT_END
int VALUE v
unsigned long ID
int ruby_debug_print_indent(int level, int debug_level, int indent_level)
Definition: debug.c:74
VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v)
Definition: debug.c:96
void ruby_set_debug_option(const char *str)
Definition: debug.c:226
void ruby_debug_gc_check_func(void)
ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id)
Definition: debug.c:115
NODE * ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node)
Definition: debug.c:125