summaryrefslogtreecommitdiff
path: root/Examples/python/exception/example.i
blob: 817c5221cd38da4ec045fdd950a71dde1b6aa11b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* File : example.i */
%module example

%{
#include "example.h"
%}

%include "std_string.i"

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

%inline %{
// The -builtin SWIG option results in SWIGPYTHON_BUILTIN being defined
#ifdef SWIGPYTHON_BUILTIN
bool is_python_builtin() { return true; }
#else
bool is_python_builtin() { return false; }
#endif
%}