#268 C# csdirectorin pre/post attribute support

None
closed
nobody
csharp (2)
5
2013-01-12
2011-05-20
No

As discussed here: http://permalink.gmane.org/gmane.comp.programming.swig/16385 SWIG does not support pre and post attributes in csdirectorin typemaps. That is actually a severe limitation in cases when directors are widely used and complex data types need to be marshaled between C++ and C#.
I added pre and post attribute support exactly like in csin typemap, and also fixed a small bug in delegate parameter types generation, where typeof(out type) was generated instead of typeof(type).MakeByRefType()
Regression test is added to csharp_prepost.i

Discussion

  • Vladimir Kalinin

    patch for rev. 12700

     
    Attachments
  • Vladimir Kalinin

    updated patch

     
    Attachments
  • William Fulton

    William Fulton - 2013-01-12

    This has now been applied for swig-2.0.10, thanks for your contribution and apologies for the delay in adding it.

     
  • William Fulton

    William Fulton - 2013-01-12
    • labels: general --> csharp
    • status: open --> closed
    • milestone: -->
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks