Skip to content

Commit

Permalink
improve logging of private variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jul 24, 2013
1 parent bc4f30b commit eac3c89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/binary/YRubyNamespace.cc
Expand Up @@ -271,9 +271,12 @@ int YRubyNamespace::addVariables(VALUE module, int offset)
for (int i = 0; i < RARRAY_LEN(variables); ++i)
{
VALUE variable = rb_ary_entry(variables,j);
VALUE variable_name = rb_funcall(variable, rb_intern("variable"), 0);
if (getenv("Y2ALLGLOBAL") == NULL && RTEST(rb_funcall(variable, rb_intern("private?"), 0)))
{
y2debug("variable: '%s' is private and not needed", rb_id2name(SYM2ID(variable_name)));
continue;
VALUE variable_name = rb_funcall(variable, rb_intern("variable"), 0);
}
VALUE type = rb_funcall(variable,rb_intern("type"),0);
string signature = StringValueCStr(type);
constTypePtr sym_tp = Type::fromSignature(signature);
Expand Down

0 comments on commit eac3c89

Please sign in to comment.