forked from imazen/imageflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswig.i
45 lines (32 loc) · 763 Bytes
/
swig.i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
%module imageflow
/* How to generate
* cd wrappers/csharp
* swig -csharp -outcurrentdir ../swig.i
*/
%nodefaultctor;
%rename("%(camelcase)(strip:[flow_])s") "";
%{
typedef signed char int8_t;
typedef short int int16_t;
typedef int int32_t;
# if __WORDSIZE == 64
typedef long int int64_t;
# else
__extension__
typedef long long int int64_t;
# endif
/* Unsigned. */
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
#if __WORDSIZE == 64
typedef unsigned long int uint64_t;
#else
__extension__
typedef unsigned long long int uint64_t;
#endif
/* Includes the header in the wrapper code */
#include "../imageflow.h"
%}
/* Parse the header file to generate wrappers */
%include "../imageflow.h"