annotate lib/swig/swigwin-2.0.11/Lib/swigarch.i @ 1899:b3009adc0e2f

Adding swig, gitignore, hgignore
author Nomad
date Mon, 21 Oct 2013 10:42:27 +0200
parents
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 /* -----------------------------------------------------------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 * swigarch.i
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 *
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4 * SWIG library file for 32bit/64bit code specialization and checking.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5 *
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6 * Use only in extreme cases, when no arch. independent code can be
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7 * generated
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 *
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9 * To activate architecture specific code, use
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10 *
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11 * swig -DSWIGWORDSIZE32
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12 *
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 * or
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14 *
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15 * swig -DSWIGWORDSIZE64
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 *
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17 * Note that extra checking code will be added to the wrapped code,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18 * which will prevent the compilation in a different architecture.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19 *
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20 * If you don't specify the SWIGWORDSIZE (the default case), swig will
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 * generate architecture independent and/or 32bits code, with no extra
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22 * checking code added.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23 * ----------------------------------------------------------------------------- */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 #if !defined(SWIGWORDSIZE32) && !defined(SWIGWORDSIZE64)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26 # if (__WORDSIZE == 32)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 # define SWIGWORDSIZE32
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28 # endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31 #if !defined(SWIGWORDSIZE64) && !defined(SWIGWORDSIZE32)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32 # if defined(__x86_64) || defined(__x86_64__) || (__WORDSIZE == 64)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33 # define SWIGWORDSIZE64
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34 # endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38 #ifdef SWIGWORDSIZE32
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 %{
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40 #define SWIGWORDSIZE32
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41 #ifndef LONG_MAX
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42 #include <limits.h>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44 #if (__WORDSIZE == 64) || (LONG_MAX != INT_MAX)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45 # error "SWIG wrapped code invalid in 64 bit architecture, regenarete code using -DSWIGWORDSIZE64"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 %}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50 #ifdef SWIGWORDSIZE64
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51 %{
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52 #define SWIGWORDSIZE64
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53 #ifndef LONG_MAX
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54 #include <limits.h>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56 #if (__WORDSIZE == 32) || (LONG_MAX == INT_MAX)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
57 # error "SWIG wrapped code invalid in 32 bit architecture, regenarete code using -DSWIGWORDSIZE32"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
58 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
59 %}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
60 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
61
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
62