Mathieu Malaterre | 17 Nov 14:34

Equivalent of #define SWIGPYTHON in C# ?

Hi there,

  I have a helper around std::set for SWIG that only gets activated if
SWIGPYTHON is defined:

#if defined(SWIGPYTHON)
class SWIGDataSet
{
public:
...
#endif

  I would like to know what is the equivalent of SWIGPYTHON for C# ? I
cannot find anything :(

thank you

--

-- 
Mathieu

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Mathieu Malaterre | 17 Nov 14:54

Re: Equivalent of #define SWIGPYTHON in C# ?

On Mon, Nov 17, 2008 at 2:38 PM, Mathieu Malaterre
<mathieu.malaterre <at> gmail.com> wrote:
> Hi there,
>
>  I have a helper around std::set for SWIG that only gets activated if
> SWIGPYTHON is defined:
>
> #if defined(SWIGPYTHON)
> class SWIGDataSet
> {
> public:
> ...
> #endif
>
>  I would like to know what is the equivalent of SWIGPYTHON for C# ? I
> cannot find anything :(

It appears that it is called SWIGCSHARP but swig 1.3.33 (debian
stable) does not add the #define SWIGCSHARP at the toplevel of the
wrap c++ file...

--

-- 
Mathieu

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
(Continue reading)

William S Fulton | 4 Dec 23:10
Favicon

Re: Equivalent of #define SWIGPYTHON in C# ?

Mathieu Malaterre wrote:
> On Mon, Nov 17, 2008 at 2:38 PM, Mathieu Malaterre
> <mathieu.malaterre <at> gmail.com> wrote:
>> Hi there,
>>
>>  I have a helper around std::set for SWIG that only gets activated if
>> SWIGPYTHON is defined:
>>
>> #if defined(SWIGPYTHON)
>> class SWIGDataSet
>> {
>> public:
>> ...
>> #endif
>>
>>  I would like to know what is the equivalent of SWIGPYTHON for C# ? I
>> cannot find anything :(
> 
> It appears that it is called SWIGCSHARP but swig 1.3.33 (debian
> stable) does not add the #define SWIGCSHARP at the toplevel of the
> wrap c++ file...
> 
> 
You can add any code/macros you want using %insert, or the short form %{ %}:

#if defined(SWIGCSHARP)
%{
#define MYMACRO
#define SWIGCSHARP
%}
(Continue reading)

Mathieu Malaterre | 8 Dec 13:57

Re: Equivalent of #define SWIGPYTHON in C# ?

On Thu, Dec 4, 2008 at 11:10 PM, William S Fulton
<wsf <at> fultondesigns.co.uk> wrote:
> Mathieu Malaterre wrote:
>>
>> On Mon, Nov 17, 2008 at 2:38 PM, Mathieu Malaterre
>> <mathieu.malaterre <at> gmail.com> wrote:
>>>
>>> Hi there,
>>>
>>>  I have a helper around std::set for SWIG that only gets activated if
>>> SWIGPYTHON is defined:
>>>
>>> #if defined(SWIGPYTHON)
>>> class SWIGDataSet
>>> {
>>> public:
>>> ...
>>> #endif
>>>
>>>  I would like to know what is the equivalent of SWIGPYTHON for C# ? I
>>> cannot find anything :(
>>
>> It appears that it is called SWIGCSHARP but swig 1.3.33 (debian
>> stable) does not add the #define SWIGCSHARP at the toplevel of the
>> wrap c++ file...
>>
>>
> You can add any code/macros you want using %insert, or the short form %{ %}:
>
> #if defined(SWIGCSHARP)
(Continue reading)


Gmane