mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02:00
Add rb_node_get_type
for debuggers
This commit is contained in:
parent
6069e8fea5
commit
d44a41d814
2 changed files with 7 additions and 0 deletions
6
node.c
6
node.c
|
@ -438,3 +438,9 @@ rb_node_set_type(NODE *n, enum node_type t)
|
|||
{
|
||||
return nd_init_type(n, t);
|
||||
}
|
||||
|
||||
enum node_type
|
||||
rb_node_get_type(const NODE *n)
|
||||
{
|
||||
return (enum node_type)nd_type(n);
|
||||
}
|
||||
|
|
1
node.h
1
node.h
|
@ -67,6 +67,7 @@ const struct kwtable *rb_reserved_word(const char *, unsigned int);
|
|||
struct parser_params;
|
||||
PRINTF_ARGS(void rb_parser_printf(struct parser_params *parser, const char *fmt, ...), 2, 3);
|
||||
VALUE rb_node_set_type(NODE *n, enum node_type t);
|
||||
enum node_type rb_node_get_type(const NODE *n);
|
||||
|
||||
RUBY_SYMBOL_EXPORT_END
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue