~ubuntu-branches/ubuntu/oneiric/swig1.3/oneiric

« back to all changes in this revision

Viewing changes to Lib/typemaps/exception.swg

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-06 10:27:08 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071206102708-t37t62i45n595w0e
Tags: 1.3.33-2ubuntu1
* Merge with Debian; remaining changes:
  - Drop support for pike.
  - Use python2.5 instead of python2.4.
  - Clean Runtime/ as well.
  - Force a few environment variables.
* debian/Rules (clean): Remove Lib/ocaml/swigp4.ml.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
/* macros for error manipulation */
14
14
#define %nullref_fmt()                     "invalid null reference "               
15
15
#define %varfail_fmt(_type,_name)          "in variable '"`_name`"' of type '"`_type`"'"
 
16
#ifndef %argfail_fmt
16
17
#define %argfail_fmt(_type,_name,_argn)    "in method '" `_name` "', argument " `_argn`" of type '" `_type`"'"
17
 
#define %outfail_fmt(_type)                "in output value of type '"_type"'"     
18
 
#define %argnullref_fmt(_type,_name,_argn) %nullref_fmt() %argfail_fmt(_type, _name, _argn)  
 
18
#endif
 
19
#define %outfail_fmt(_type)                "in output value of type '"_type"'"
 
20
#ifndef %argnullref_fmt
 
21
#define %argnullref_fmt(_type,_name,_argn) %nullref_fmt() %argfail_fmt(_type, _name, _argn)
 
22
#endif  
19
23
#define %varnullref_fmt(_type,_name)       %nullref_fmt() %varfail_fmt(_type, _name)               
20
24
#define %outnullref_fmt(_type)             %nullref_fmt() %outfail_fmt(_type)         
21
25