Skip to content

Commit ae0efd3

Browse files
committed
Merge branch 'nightlark-preprocessor-docs'
* nightlark-preprocessor-docs: Correct preprocessor docs Preprocessor definitions doc update Remove BUILDING_NOTE_EXTENSION from docs Add missing preprocessor defines to the docs list
2 parents f97b37a + 3f30735 commit ae0efd3

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

Doc/Manual/Preprocessor.html

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,13 @@ <H2><a name="Preprocessor_condition_compilation">11.3 Conditional Compilation</a
110110
such as 0x010311 (corresponding to SWIG-1.3.11).
111111

112112
SWIGCSHARP Defined when using C#
113+
SWIGD Defined when using D
114+
SWIGGO Defined when using Go
113115
SWIGGUILE Defined when using Guile
114116
SWIGJAVA Defined when using Java
115117
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
118120
SWIGLUA Defined when using Lua
119121
SWIGMZSCHEME Defined when using Mzscheme
120122
SWIGOCAML Defined when using OCaml
@@ -143,12 +145,24 @@ <H2><a name="Preprocessor_condition_compilation">11.3 Conditional Compilation</a
143145
</pre>
144146
</div>
145147

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+
146162
<p>
147163
Interface files can look at these symbols as necessary to change the
148164
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.
152166
</p>
153167

154168
<H2><a name="Preprocessor_nn5">11.4 Macro Expansion</a></H2>

0 commit comments

Comments
 (0)