cs:defaultargs does not convert 'NULL' to 'null'

Michael <[email protected]>
Newsgroups gmane.comp.programming.swig
Message-ID <CACKw9A8WkxR8e4o44YBTb=-Dzpzw8q0YU=kUxJSsFR7PiyeOoA@mail.gmail.com>
I defined the below function which has a single argument with a NULL
default value.

%feature("cs:defaultargs");
%inline
{
  char* Function(char* argument = NULL) {
    return argument;
  }
}

SWIG generates the following method signature.

public static string Function(string argument=NULL)

The uppercase 'NULL' is not a keyword and can't be aliased inside C#. Is
there a way to have SWIG convert 'NULL' default arguments to lowercase
'null' for C#?
-- 
Michael Bucari

_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.