title: SWIG: %ignore keeps giving "Syntax error in input(1)"
body: <p>Forgive me if this question is silly, but I can't find a good example of %ignore being used around the web. I'm trying to generate a python wrapper for C++ code using the following command:</p>
  
  <pre><code>swig -python -c++ sample.i
  </code></pre>
  
  <p>I have an interface file like the following:</p>
  
  <pre><code>%module sample
  %{
  #include &lt;file1.h&gt;
  #include &lt;file2.h&gt;
  %}
  
  %ignore vprint
  %include &lt;file1.h&gt;
  %include &lt;file2.h&gt;
  %include &lt;file3.h&gt;
  </code></pre>
  
  <p>I'm trying to exclude the vprint function, defined in file1.h, because it takes in a va_list as a parameter, which SWIG doesn't support the wrapping of. When I include the %ignore statement, I get an error stating "Syntax error in input(1)". Without it, I get the normal error telling me I can't wrap the function I'm trying to ignore. Why might this error be occurring? Thanks in advance!</p>