@@ -110,11 +110,13 @@ <H2><a name="Preprocessor_condition_compilation">11.3 Conditional Compilation</a
110
110
such as 0x010311 (corresponding to SWIG-1.3.11).
111
111
112
112
SWIGCSHARP Defined when using C#
113
+ SWIGD Defined when using D
114
+ SWIGGO Defined when using Go
113
115
SWIGGUILE Defined when using Guile
114
116
SWIGJAVA Defined when using Java
115
117
SWIGJAVASCRIPT Defined when using Javascript
116
- SWIG_JAVASCRIPT_JSC Defined when using Javascript for JavascriptCore
117
- SWIG_JAVASCRIPT_V8 Defined when using Javascript for v8 or node.js
118
+ SWIG_JAVASCRIPT_JSC Defined when using Javascript with -jsc
119
+ SWIG_JAVASCRIPT_V8 Defined when using Javascript with - v8 or - node
118
120
SWIGLUA Defined when using Lua
119
121
SWIGMZSCHEME Defined when using Mzscheme
120
122
SWIGOCAML Defined when using OCaml
@@ -143,12 +145,24 @@ <H2><a name="Preprocessor_condition_compilation">11.3 Conditional Compilation</a
143
145
</ pre >
144
146
</ div >
145
147
148
+ < p >
149
+ The following are language specific symbols that might be defined:
150
+ </ p >
151
+
152
+ < div class ="code "> < pre >
153
+ SWIG_D_VERSION Unsigned integer target version when using D
154
+ SWIGGO_CGO Defined when using Go for cgo
155
+ SWIGGO_GCCGO Defined when using Go for gccgo
156
+ SWIGGO_INTGO_SIZE Size of the Go type int when using Go (32 or 64)
157
+ SWIGPYTHON_PY3 Defined when using Python with -py3
158
+ SWIGPYTHON_BUILTIN Defined when using Python with -builtin
159
+ SWIG_RUBY_AUTORENAME Defined when using Ruby with -autorename
160
+ </ pre > </ div >
161
+
146
162
< p >
147
163
Interface files can look at these symbols as necessary to change the
148
164
way in which an interface is generated or to mix SWIG directives with
149
- C code. These symbols are also defined within the C code generated by
150
- SWIG (except for the symbol `< tt > SWIG</ tt > ' which is only defined
151
- within the SWIG compiler).
165
+ C code.
152
166
</ p >
153
167
154
168
< H2 > < a name ="Preprocessor_nn5 "> 11.4 Macro Expansion</ a > </ H2 >
0 commit comments