Patch to support argout typemap for your swig-v8 branch.
This commit is contained in:
parent
32f9cce600
commit
0732592ed9
1 changed files with 10 additions and 0 deletions
|
|
@ -1285,6 +1285,16 @@ void JSEmitter::emitCleanupCode(Node *n, Wrapper *wrapper, ParmList *params) {
|
||||||
Parm *p;
|
Parm *p;
|
||||||
String *tm;
|
String *tm;
|
||||||
|
|
||||||
|
for (p = params; p;) {
|
||||||
|
if ((tm = Getattr(p, "tmap:argout"))) {
|
||||||
|
Replaceall(tm, "$input", Getattr(p, "emit:input"));
|
||||||
|
Printv(wrapper->code, tm, "\n", NIL);
|
||||||
|
p = Getattr(p, "tmap:argout:next");
|
||||||
|
} else {
|
||||||
|
p = nextSibling(p);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (p = params; p;) {
|
for (p = params; p;) {
|
||||||
if ((tm = Getattr(p, "tmap:freearg"))) {
|
if ((tm = Getattr(p, "tmap:freearg"))) {
|
||||||
//addThrows(n, "tmap:freearg", p);
|
//addThrows(n, "tmap:freearg", p);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue