Includes inside %inline block documented, see #1068

This commit is contained in:
luav 2017-09-11 22:13:19 +02:00
commit 0587edd559

View file

@ -3293,7 +3293,6 @@ Vector *new_Vector() {
return (Vector *) malloc(sizeof(Vector));
}
%}
</pre></div>
<p>
@ -3305,6 +3304,11 @@ declaration. Since the code inside an <tt>%inline %{ ... %}</tt> block
is given to both the C compiler and SWIG, it is illegal to include any
SWIG directives inside a <tt>%{ ... %}</tt> block.</p>
<p>
<b>Note:</b>Any <tt>#include</tt> directives are omitted inside the
<tt>%inline %{ ... %}</tt> block unless the <tt>-includeall</tt> command line
option is supplied.</p>
<H3><a name="SWIG_nn44">5.6.4 Initialization blocks</a></H3>