Skip to content

Commit

Permalink
Octave: macro for printing the Octave version as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
kwwette committed Jul 7, 2014
1 parent b0f9657 commit 120b6bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Lib/octave/octrundecl.swg
Expand Up @@ -24,6 +24,13 @@
#define SWIG_OCTAVE_PREREQ(major, minor, patch) \ #define SWIG_OCTAVE_PREREQ(major, minor, patch) \
( (OCTAVE_MAJOR_VERSION<<16) + (OCTAVE_MINOR_VERSION<<8) + OCTAVE_PATCH_VERSION >= ((major)<<16) + ((minor)<<8) + (patch) ) ( (OCTAVE_MAJOR_VERSION<<16) + (OCTAVE_MINOR_VERSION<<8) + OCTAVE_PATCH_VERSION >= ((major)<<16) + ((minor)<<8) + (patch) )


// Macro for printing the Octave version as a string
#define SWIG_OCTAVE_VERSION_STRINGIZE(x) #x
#define SWIG_OCTAVE_VERSION_CONCAT(x,y,z) \
SWIG_OCTAVE_VERSION_STRINGIZE(x) "." SWIG_OCTAVE_VERSION_STRINGIZE(y) "." SWIG_OCTAVE_VERSION_STRINGIZE(z)
#define SWIG_OCTAVE_VERSION \
SWIG_OCTAVE_VERSION_CONCAT(OCTAVE_MAJOR_VERSION, OCTAVE_MINOR_VERSION, OCTAVE_PATCH_VERSION)

// Reconstruct Octave major, minor, and patch versions for releases prior to 3.8.1 // Reconstruct Octave major, minor, and patch versions for releases prior to 3.8.1
#if !defined(OCTAVE_MAJOR_VERSION) #if !defined(OCTAVE_MAJOR_VERSION)


Expand Down

0 comments on commit 120b6bb

Please sign in to comment.