From: Eric C. <Eri...@au...> - 2012-09-28 20:55:20
|
Thanks ! The trick is actually much simpler after all. Rename the method %rename(_Foo) Class::Foo; And then have my C# Foo method call the _Foo method of the P/Invoke layer I can also make the C# _Foo method private to make sure nobody calls it. ÉC -----Original Message----- From: AlBor [mailto:dsb...@gm...] Sent: Friday, September 28, 2012 5:00 AM To: swi...@li... Subject: Re: [Swig-user] how can I avoid the proxy function to be created Hi, that's not probably just your case, but seems to me something similar. You may just implement everything (or only a part you need) a you like. %ignore Class::Foo; %wrapper %{ extern "C" SWIGEXPORT int SWIGSTDCALL CSharp_Class_Foo(void *jarg) { //method implementation } %} %pragma(csharp) imclasscode= %{ [DllImport(... public static extern int Class_Foo... %} %typemap(cscode) %{ public in Foo { // do whar ever you want } %} That has less of auto generation but is flexible enough to do whatever you want. Regards, Alex. -- View this message in context: http://old.nabble.com/how-can-I-avoid-the-proxy-function-to-be-created-tp34480850p34490640.html Sent from the swig-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Swig-user mailing list Swi...@li... https://lists.sourceforge.net/lists/listinfo/swig-user |