calling Swig_name_setget

This commit is contained in:
Richard Beare 2018-09-11 10:32:58 +10:00
commit 5f865bdc7e

View file

@ -1888,8 +1888,11 @@ int R::functionWrapper(Node *n) {
bool isSet(GetFlag(n, "memberset"));
String *tmp = NewString("");
Printf(tmp, "%s_%s", class_name, isSet ? "set" : "get");
String *tmp = NewString(isSet ? Swig_name_set(NSPACE_TODO, class_name) : Swig_name_get(NSPACE_TODO, class_name));
if (debugMode) {
Printf(stdout, "functionWrapper TMP: %s\n", tmp);
}
List *memList = Getattr(ClassMemberTable, tmp);
if(!memList) {