enforce consistency in wrap:action wrt line spacing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d67d79e0dc
commit
46a0db50fe
8 changed files with 21 additions and 20 deletions
|
|
@ -1759,9 +1759,9 @@ public:
|
|||
Wrapper_add_local(f, "classname", classname);
|
||||
}
|
||||
if (action) {
|
||||
Append(action, "DATA_PTR(self) = result;\n");
|
||||
Append(action, "\nDATA_PTR(self) = result;");
|
||||
if (GetFlag(pn, "feature:trackobjects")) {
|
||||
Append(action, "SWIG_RubyAddTracking(result, self);\n");
|
||||
Append(action, "\nSWIG_RubyAddTracking(result, self);");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2654,11 +2654,11 @@ public:
|
|||
Printv(f_wrappers, wrap, NIL);
|
||||
}
|
||||
/* Printv(freebody, Swig_name_destroy(name), "(", pname0, ")", NIL); */
|
||||
Printv(freebody, Getattr(n, "wrap:action"), NIL);
|
||||
Printv(freebody, Getattr(n, "wrap:action"), "\n", NIL);
|
||||
} else {
|
||||
String *action = Getattr(n, "wrap:action");
|
||||
if (action) {
|
||||
Printv(freebody, action, NIL);
|
||||
Printv(freebody, action, "\n", NIL);
|
||||
} else {
|
||||
/* In the case swig emits no destroy function. */
|
||||
if (CPlusPlus)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue