~ubuntu-branches/ubuntu/quantal/swig2.0/quantal

« back to all changes in this revision

Viewing changes to Source/Modules/contract.cxx

  • Committer: Package Import Robot
  • Author(s): Stefano Rivera
  • Date: 2012-06-01 17:05:17 UTC
  • mfrom: (1.1.6) (10.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20120601170517-q0ik32ij61i4r6f0
Tags: 2.0.7-2ubuntu1
* Merge from Debian unstable (LP: #1006387). Remaining changes:
  - Drop libchicken-dev from the build-depends (in universe).

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 * Support for Wrap by Contract in SWIG.
12
12
 * ----------------------------------------------------------------------------- */
13
13
 
14
 
char cvsroot_contract_cxx[] = "$Id: contract.cxx 11876 2010-02-27 23:53:33Z wsfulton $";
 
14
char cvsroot_contract_cxx[] = "$Id: contract.cxx 12830 2011-10-30 21:51:50Z wsfulton $";
15
15
 
16
16
#include "swigmod.h"
17
17
 
213
213
  for (ei = First(list_assert); ei.item; ei = Next(ei)) {
214
214
    expr = ei.item;
215
215
    if (Len(expr)) {
216
 
      Replaceid(expr, Getattr(n, "name"), "result");
 
216
      Replaceid(expr, Getattr(n, "name"), Swig_cresult_name());
217
217
      if (Len(str_assert))
218
218
        Append(str_assert, "&&");
219
219
      Printf(str_assert, "(%s)", expr);