Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 42 lines (29 sloc) 1.269 kB
a3e1b1c @ko1 * Merge YARV
ko1 authored
1 /**********************************************************************
2
3 debug.h - YARV Debug function interface
4
5 $Author$
6 created at: 04/08/25 02:33:49 JST
7
d907cbc @ko1 * blockinlining.c, compile.c, compile.h, debug.c, debug.h,
ko1 authored
8 Copyright (C) 2004-2007 Koichi Sasada
a3e1b1c @ko1 * Merge YARV
ko1 authored
9
10 **********************************************************************/
11
78ce3ea @nobu * debug.h: constified.
nobu authored
12 #ifndef RUBY_DEBUG_H
13 #define RUBY_DEBUG_H
a3e1b1c @ko1 * Merge YARV
ko1 authored
14
2b59258 @nobu * include/ruby: moved public headers.
nobu authored
15 #include "ruby/ruby.h"
2e311f6 @ko1 * include/ruby/node.h, node.h: move node.h from include path.
ko1 authored
16 #include "node.h"
a3e1b1c @ko1 * Merge YARV
ko1 authored
17
0bd71ff @nobu * configure.in (XCFLAGS): use -fvisibility=hidden if possible.
nobu authored
18 #if defined __GNUC__ && __GNUC__ >= 4
19 #pragma GCC visibility push(default)
20 #endif
21
099f52d @akr * debug.h: parenthesize macro arguments.
akr authored
22 #define dpv(h,v) ruby_debug_print_value(-1, 0, (h), (v))
23 #define dp(v) ruby_debug_print_value(-1, 0, "", (v))
24 #define dpi(i) ruby_debug_print_id(-1, 0, "", (i))
25 #define dpn(n) ruby_debug_print_node(-1, 0, "", (n))
7980e65 @ko1 * call_cfunc.ci: removed.
ko1 authored
26
44aef0b @ko1 * this commit is a result of refactoring. only renaming functions,
ko1 authored
27 #define bp() ruby_debug_breakpoint()
a3e1b1c @ko1 * Merge YARV
ko1 authored
28
78ce3ea @nobu * debug.h: constified.
nobu authored
29 VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v);
30 ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id);
31 NODE *ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node);
6866bce @nobu * compile.c, compile.h (compile_debug): made runtime option.
nobu authored
32 int ruby_debug_print_indent(int level, int debug_level, int indent_level);
44aef0b @ko1 * this commit is a result of refactoring. only renaming functions,
ko1 authored
33 void ruby_debug_breakpoint(void);
33163ad * regparse.c, etc.: K&R to ANSI code cleanup patch from Stefan
matz authored
34 void ruby_debug_gc_check_func(void);
75b10ac @akr * debug.h (ruby_set_debug_option): declared.
akr authored
35 void ruby_set_debug_option(const char *str);
36
0bd71ff @nobu * configure.in (XCFLAGS): use -fvisibility=hidden if possible.
nobu authored
37 #if defined __GNUC__ && __GNUC__ >= 4
38 #pragma GCC visibility pop
39 #endif
40
78ce3ea @nobu * debug.h: constified.
nobu authored
41 #endif /* RUBY_DEBUG_H */
Something went wrong with that request. Please try again.