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

« back to all changes in this revision

Viewing changes to Examples/lua/exception/example.i

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-06-20 18:33:37 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080620183337-hockvwcewu29409c
Tags: 1.3.35-4ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop support for pike.
  - Use python2.5 instead of python2.4.
  - use php5
  - 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:
 
1
/* File : example.i */
 
2
%module example
 
3
 
 
4
%{
 
5
#include "example.h"
 
6
%}
 
7
 
 
8
%include "std_string.i"
 
9
 
 
10
// we want to return Exc objects to the interpreter
 
11
// therefore we add this typemap
 
12
// note: only works if Exc is copyable
 
13
%apply SWIGTYPE EXCEPTION_BY_VAL {Exc};
 
14
 
 
15
/* Let's just grab the original header file here */
 
16
%include "example.h"
 
17