summaryrefslogtreecommitdiff
path: root/Doc/Manual
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2020-03-05 19:06:08 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2020-03-05 19:06:08 +0000
commitae0efd3d742ad083312fadbc652d4d66fdad6f4d (patch)
tree843128701c9800f8c9d3ca78bf0080f2352a8343 /Doc/Manual
parentf97b37a3162c15eca54d2171c36c75125ad3754e (diff)
parent3f3073547804f2e112085429ddfb691beba5a2ba (diff)
downloadswig-ae0efd3d742ad083312fadbc652d4d66fdad6f4d.tar.gz
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
Diffstat (limited to 'Doc/Manual')
-rw-r--r--Doc/Manual/Preprocessor.html24
1 files changed, 19 insertions, 5 deletions
diff --git a/Doc/Manual/Preprocessor.html b/Doc/Manual/Preprocessor.html
index 63ee2c2d6..51cc06378 100644
--- a/Doc/Manual/Preprocessor.html
+++ b/Doc/Manual/Preprocessor.html
@@ -110,11 +110,13 @@ SWIG_VERSION Hexadecimal (binary-coded decimal) number contai
such as 0x010311 (corresponding to SWIG-1.3.11).
SWIGCSHARP Defined when using C#
+SWIGD Defined when using D
+SWIGGO Defined when using Go
SWIGGUILE Defined when using Guile
SWIGJAVA Defined when using Java
SWIGJAVASCRIPT Defined when using Javascript
-SWIG_JAVASCRIPT_JSC Defined when using Javascript for JavascriptCore
-SWIG_JAVASCRIPT_V8 Defined when using Javascript for v8 or node.js
+SWIG_JAVASCRIPT_JSC Defined when using Javascript with -jsc
+SWIG_JAVASCRIPT_V8 Defined when using Javascript with -v8 or -node
SWIGLUA Defined when using Lua
SWIGMZSCHEME Defined when using Mzscheme
SWIGOCAML Defined when using OCaml
@@ -144,11 +146,23 @@ __cplusplus Defined when -c++ option used
</div>
<p>
+The following are language specific symbols that might be defined:
+</p>
+
+<div class="code"><pre>
+SWIG_D_VERSION Unsigned integer target version when using D
+SWIGGO_CGO Defined when using Go for cgo
+SWIGGO_GCCGO Defined when using Go for gccgo
+SWIGGO_INTGO_SIZE Size of the Go type int when using Go (32 or 64)
+SWIGPYTHON_PY3 Defined when using Python with -py3
+SWIGPYTHON_BUILTIN Defined when using Python with -builtin
+SWIG_RUBY_AUTORENAME Defined when using Ruby with -autorename
+</pre></div>
+
+<p>
Interface files can look at these symbols as necessary to change the
way in which an interface is generated or to mix SWIG directives with
-C code. These symbols are also defined within the C code generated by
-SWIG (except for the symbol `<tt>SWIG</tt>' which is only defined
-within the SWIG compiler).
+C code.
</p>
<H2><a name="Preprocessor_nn5">11.4 Macro Expansion</a></H2>