Fix display of template classnames in generated R code
This commit is contained in:
parent
7648542775
commit
88ef6e0931
1 changed files with 5 additions and 4 deletions
|
|
@ -1126,8 +1126,8 @@ int R::OutputMemberReferenceMethod(String *className, int isSet,
|
||||||
}
|
}
|
||||||
Printf(f->code, "}\n");
|
Printf(f->code, "}\n");
|
||||||
|
|
||||||
|
String *classname_str = SwigType_namestr(className);
|
||||||
Printf(out, "# Start of accessor method for %s\n", className);
|
Printf(out, "# Start of accessor method for %s\n", classname_str);
|
||||||
Printf(out, "setMethod('$%s', '_p%s', ",
|
Printf(out, "setMethod('$%s', '_p%s', ",
|
||||||
isSet ? "<-" : "",
|
isSet ? "<-" : "",
|
||||||
getRClassName(className));
|
getRClassName(className));
|
||||||
|
|
@ -1143,11 +1143,12 @@ int R::OutputMemberReferenceMethod(String *className, int isSet,
|
||||||
Printf(out, ");\n");
|
Printf(out, ");\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Printf(out, "# end of accessor method for %s\n", classname_str);
|
||||||
|
|
||||||
|
Delete(classname_str);
|
||||||
DelWrapper(attr);
|
DelWrapper(attr);
|
||||||
DelWrapper(f);
|
DelWrapper(f);
|
||||||
|
|
||||||
Printf(out, "# end of accessor method for %s\n", className);
|
|
||||||
|
|
||||||
return SWIG_OK;
|
return SWIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue