modified contract output format

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5079 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Tiger Feng 2003-09-05 19:11:11 +00:00
commit 5e31722409
2 changed files with 11 additions and 11 deletions

View file

@ -512,17 +512,17 @@ void emit_action(Node *n, Wrapper *f) {
Replaceid(tm, "SWIG_invariant", "SWIG_invariant_end"); Replaceid(tm, "SWIG_invariant", "SWIG_invariant_end");
Printv(f->code,tm,"\n",NIL); Printv(f->code,tm,"\n",NIL);
} }
/* Inherit Postassertion */
tm = Getattr(n, "feature:inherit_postassert");
if (Len(tm)) {
replace_contract_args(Getmeta(tm,"parms"), Getattr(n,"parms"),tm);
Printv(f->code,tm,"\n",NIL);
}
/* Postassertion */ /* Postassertion */
tm = Getattr(n, "feature:postassert"); tm = Getattr(n, "feature:postassert");
if (Len(tm)) { if (Len(tm)) {
replace_contract_args(Getmeta(tm,"parms"), Getattr(n,"parms"),tm); replace_contract_args(Getmeta(tm,"parms"), Getattr(n,"parms"),tm);
Printv(f->code,tm,"\n",NIL); Printv(f->code,tm,"\n",NIL);
} }
/* Inherit Postassertion */
tm = Getattr(n, "feature:inherit_postassert");
if (Len(tm)) {
replace_contract_args(Getmeta(tm,"parms"), Getattr(n,"parms"),tm);
Printv(f->code,tm,"\n",NIL);
}
} }
} }