« Return to Thread: Almost empty cs file created

Re: Almost empty cs file created

by wsfulton :: Rate this Message:

Reply to Author | View in Thread

Juan Manuel Alvarez wrote:

> Hello everyone! I am having a little doubt I would like to share.
>
> I am wrapping to C# and given a simple file like:
>
> %module myModule
> %{
> #include "myModule.h"
> %}
> namespace fzm
> {
> class MyClass
> {
>       // ... interface here....
> };
> }
>
> The thing is that SWIG generates 3 files:
> - MyClass.cs with the class itselft
> - myModulePINVOKE.cs with all the pinvoke stuff
> - myModule.cs with the following code:
>
> namespace NS {
>
> using System;
> using System.Runtime.InteropServices;
>
> public class myModule {
> }
>
> }
>
> The question is... even if the file does no harm, is there a way to
> tell SWIG no to generate it?
>
In a nutshell, no. Your build system will have to delete it after
running SWIG if you don't like it. If you didn't know, C/C++ global
wrappers get put into this class.

William

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

 « Return to Thread: Almost empty cs file created