summaryrefslogtreecommitdiff
path: root/Examples/lua/exception/example.i
blob: 6187f8eff72e33943eb4aa60951bf0a4f815b054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* File : example.i */
%module example

%{
#include "example.h"
%}

%include "std_string.i"

// we want to return Exc objects to the interpreter
// therefore we add this typemap
// note: only works if Exc is copyable
%apply SWIGTYPE EXCEPTION_BY_VAL {Exc};

/* Let's just grab the original header file here */
%include "example.h"