#9 Work around for Foo_user.h inclusion in middle of class def

open
nobody
None
5
2005-01-25
2005-01-25
No

In Jace 1.1RC1_04, it is not possible to include additional
headers for user generated code.

The reason for this is that for class Foo, the Foo_user.h
file is included inside an open class definition. Leaving
scoping and other issues aside, if the class has an
element that is not syntactically valid inside a class
definition (eg extern "C" {), this will result in an error
during compilation.

A work around is to #include a separate user defined file
before the class definition is opened. The attached
patch generates an additional #include for the
file "Foo_user_hdr.h" before the proxy headers for the
class are included, and before the class definition is
opened.

Discussion

  • - 2005-01-25

    Patch to PeerGenerator.java to include an additional user header file.

     
  • - 2005-01-25

    Logged In: YES
    user_id=6693

    Forgot to mention that this is discussed here:
    http://sourceforge.net/forum/forum.php?
    thread_id=894842&forum_id=63528

     

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

Sign up for the SourceForge newsletter:





No, thanks