blob: 81ad43a5bc704e4349e9f7511c1c9991b8d24100 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#if defined(SWIGPYTHON_BUILTIN) /* defined when using -builtin */
%module(package="pkg1", moduleimport="from $module import *") foo
#else
%module(package="pkg1", moduleimport="import $module") foo
#endif
%{
static unsigned count(void)
{
return 3;
}
%}
unsigned count(void);
|