When SWIG (using C#) wraps a method, say
void foo();
it will generate a wrapper method with a CSharp_ prefix like this:
SWIGEXPORT void SWIGSTDCALL CSharp_foo() {
foo();
}
Is it possible to specify/override this prefix?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think it is possible to change this at runtime — as far as I can make it out, this is set in file csharp.cxx, line:
So you’d need to change this in some way and recompile SWIG.