Ruby 1.9.2p136(2010-12-25revision30365)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# debug.h

Go to the documentation of this file.

    00001 /**********************************************************************
    00002
    00003   debug.h - YARV Debug function interface
    00004
    00005   $Author: akr $
    00006   created at: 04/08/25 02:33:49 JST
    00007
    00008   Copyright (C) 2004-2007 Koichi Sasada
    00009
    00010 **********************************************************************/
    00011
    00012 #ifndef RUBY_DEBUG_H
    00013 #define RUBY_DEBUG_H
    00014
    00015 #include "ruby/ruby.h"
    00016 #include "node.h"
    00017
    00018 #define dpv(h,v) ruby_debug_print_value(-1, 0, h, v)
    00019 #define dp(v)    ruby_debug_print_value(-1, 0, "", v)
    00020 #define dpi(i)   ruby_debug_print_id(-1, 0, "", i)
    00021 #define dpn(n)   ruby_debug_print_node(-1, 0, "", n)
    00022
    00023 #define bp()     ruby_debug_breakpoint()
    00024
    00025 VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v);
    00026 ID    ruby_debug_print_id(int level, int debug_level, const char *header, ID id);
    00027 NODE *ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node);
    00028 int   ruby_debug_print_indent(int level, int debug_level, int indent_level);
    00029 void  ruby_debug_breakpoint(void);
    00030 void  ruby_debug_gc_check_func(void);
    00031
    00032 #ifdef RUBY_DEBUG_ENV
    00033 void ruby_set_debug_option(const char *str);
    00034 #endif
    00035
    00036 #endif /* RUBY_DEBUG_H */
    00037