Tokamak Version

Help
2007-10-28
2013-05-02
  • Adrian Boeing

    Adrian Boeing - 2007-10-28

    Is there a way to get version information from the Tokamak library? (either a #define or a GetVersion call?) If not, would it be possible to add this to the library?

     
    • David Lam

      David Lam - 2007-10-29

      Now that would be good thing to have. I will put it in next version. What suggestion do you have in term of how to read this value?

       
      • Adrian Boeing

        Adrian Boeing - 2007-10-29

        I would think to either provide a function, or just a #define, eg:
        #define TOKAMAK_VERSION_STRING "1.0.4a"
        or
        #define  TOKAMAK_VERSION_MAJOR   1
        #define  TOKAMAK_VERSION_MINOR   0
        #define  TOKAMAK_VERSION_BUGFIX   5
        #define  TOKAMAK_VERSION
        (( TOKAMAK_VERSION_MAJOR <<24)+(TOKAMAK_VERSION_MINOR <<16)+(TOKAMAK_VERSION_BUGFIX <<8) + 0)
        or
        u32 TOKAMAK_API neGetVersion() {
          return 104;
        }

        The #define MAJOR MINOR BUGFIX is probably the easiest way to go? (But I guess that means no more "x.x.xa" releases ;) )

         

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks