[go: up one dir, main page]

File: swigarch.i

package info (click to toggle)
swig 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 46,232 kB
  • sloc: cpp: 54,631; ansic: 29,122; java: 17,530; python: 12,505; cs: 10,369; ruby: 7,232; yacc: 6,477; makefile: 5,965; javascript: 5,520; sh: 5,415; perl: 4,187; php: 3,693; ml: 2,187; lisp: 2,056; tcl: 1,991; xml: 115
file content (33 lines) | stat: -rw-r--r-- 1,060 bytes parent folder | download | duplicates (2)
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
/* -----------------------------------------------------------------------------
 * swigarch.i
 *
 * SWIG library file for 32bit/64bit code specialization and checking.
 *
 * Use only in extreme cases, when no arch. independent code can be
 * generated
 * 
 * To activate 32-bit architecture checks, use
 *
 *     swig -DSWIGWORDSIZE32
 *
 * This adds checks that long is 32-bits when compiling the generated wrappers.
 *
 * To activate 64-bit architecture specific code, use
 *
 *     swig -DSWIGWORDSIZE64
 *
 * This adds checks that long is 64-bits when compiling the generated wrappers.
 * Some target languages also generate code that expects long to be 64-bits.
 *
 * If you don't specify the SWIGWORDSIZE (the default case), SWIG will
 * generate architecture independent and/or 32bits code, with no extra
 * checks for the sizeof long.
 * ----------------------------------------------------------------------------- */

#ifdef SWIGWORDSIZE32
%fragment("long_check_wordsize32");
#endif

#ifdef SWIGWORDSIZE64
%fragment("long_check_wordsize64");
#endif