Although the syntax of the following function declaration is not wrong in C11, it triggered an syntax error in input(1):

LEPT_DLL extern void setPixMemoryManager ( void * (  ( *allocator ) ( size_t ) ), void  (  ( *deallocator ) ( void * ) ) );

I need a mean to tell swig to ignore it(or comment it out to be exact) after I have included the .h file as a whole 
%include "xxxx.h"
%ignore aFunctionInsideXXX

Below are something that won't work :
%rename ("$ignore") setPixMemoryManager;
%ignore  setPixMemoryManager;

On Fri, May 30, 2014 at 2:42 AM, Joe Chan <> wrote:
%ignore ""  shall mean ignore everything
but it does not work on 2.0.11


On Thu, May 29, 2014 at 11:17 PM, Vadim Zeitlin <> wrote:
On Thu, 29 May 2014 09:08:57 -0600 Bob Hood <> wrote:

BH> Unless a newer version does (I use v2.0.4), no, I don't believe SWIG provides
BH> pattern-matching %ignore commands.

 Actually, yes, newer versions (since 2.0.10 I believe? Anyhow, just use
3.0.1) do support using %(regex:...) in %rename, and hence %ignore, which
is just a special case of it. See


Time is money. Stop wasting it! Get your web API in 5 minutes.
Swig-user mailing list