diff --git a/Doc/Manual/SWIG.html b/Doc/Manual/SWIG.html index aec48ef03..c54d117e0 100644 --- a/Doc/Manual/SWIG.html +++ b/Doc/Manual/SWIG.html @@ -826,6 +826,32 @@ However, for the same conservative reasons even a constant with a simple cast wi +

+This logic can lead to false attempts at converting #define into %constant though. +For example the following case does not have any undefined symbols within the macro: +

+ +
+
+// For indicating pure virtual functions such as: virtual void f() PURE;
+#define PURE = 0
+
+
+ +

+A warning is issued: +

+ +
+
+pure.h:1: Warning 305: Bad constant value (ignored).
+
+
+ +

+In such cases simply ignore the warning or suppress it using the normal warning suppression techniques. +

+

The use of constant expressions is allowed, but SWIG does not evaluate them. Rather, it passes them through to the output file and lets the C