summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python_runtime_data_builtin.i
blob: 1001b837c2cb0848498702a44699ca2b29b09aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Test swig_runtime_data with and without -builtin

%module python_runtime_data_builtin

%inline %{
#ifdef SWIGPYTHON_BUILTIN
bool is_python_builtin() { return true; }
#else
bool is_python_builtin() { return false; }
#endif
%}

%include std_vector.i

%template(vectord) std::vector<double>;