summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorDavid Nadlinger <code@klickverbot.at>2010-11-18 10:16:05 +0000
committerDavid Nadlinger <code@klickverbot.at>2010-11-18 10:16:05 +0000
commitd69d8ff641b28fdd7a6ddaeb724980060225fd3d (patch)
tree93ee4bbc6c991279b5a0577d73c3bf0b56fac744 /Doc
parent03aefbc6e95d094a6de231e1f5264c0946e209a3 (diff)
downloadswig-d69d8ff641b28fdd7a6ddaeb724980060225fd3d.tar.gz
[D] Renamed the "dnativeconst" feature to "dmanifestconst".
This should make it clearer that it controls manifest constant generation, not handling of C++ const member functions. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Manual/D.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/Manual/D.html b/Doc/Manual/D.html
index 2b563788f..a232f236b 100644
--- a/Doc/Manual/D.html
+++ b/Doc/Manual/D.html
@@ -281,9 +281,9 @@ $importtype(AnotherInterface)
<dl>
- <dt><tt>%dnativeconst</tt> and <tt>%dconstvalue(value)</tt></dt>
+ <dt><tt>%dmanifestconst</tt> and <tt>%dconstvalue(value)</tt></dt>
<dd>
- <p>Out of the box, SWIG generates accessor methods for C <tt>#defines</tt> and C++ constants. The <tt>%dnativeconst</tt> directive enables wrapping these constants as D manifest constants (<tt>const</tt> in D1, <tt>enum</tt> in D2).</p>
+ <p>Out of the box, SWIG generates accessor methods for C <tt>#defines</tt> and C++ constants. The <tt>%dmanifestconst</tt> directive enables wrapping these constants as D manifest constants (<tt>const</tt> in D1, <tt>enum</tt> in D2).</p>
<p>For this to work, the C/C++ code for the constant value must directly compile as D code, though. If this is not the case, you can manually override the expression written to the D wrapper using the <tt>%dconstvalue</tt> directive, passing the new value as parameter.</p>
<p>For <tt>enum</tt>s, again <tt>%dconstvalue</tt> can be used to override the value of an enum item if the initializer should not compile in D.</p>
</dd>