Permalink
Browse files

Add new version defines, update ofGetVersionInfo().

New defines are OF_VERSION_MAJOR,  OF_VERSION_MINOR, OF_VERSION_PATCH. Old define OF_VERSION is removed because of incompatibility with new system (old MINOR is new MAJOR). This way any code that uses it fails to compile instead of silently making wrong decisions.
  • Loading branch information...
1 parent 7947250 commit 29b0ddacfe35b44922dee94727f37732982ec74e @bilderbuchi bilderbuchi committed Jan 12, 2013
Showing with 5 additions and 4 deletions.
  1. +4 −2 libs/openFrameworks/utils/ofConstants.h
  2. +1 −2 libs/openFrameworks/utils/ofUtils.cpp
@@ -1,8 +1,10 @@
#pragma once
//-------------------------------
-#define OF_VERSION 7
-#define OF_VERSION_MINOR 2
+#define OF_VERSION_MAJOR 0
+#define OF_VERSION_MINOR 7
+#define OF_VERSION_PATCH 4
+
//-------------------------------
enum ofLoopType{
@@ -667,9 +667,8 @@ void ofLaunchBrowser(string url){
//--------------------------------------------------
string ofGetVersionInfo(){
- string version;
stringstream sstr;
- sstr << "of version: " << OF_VERSION << endl;
+ sstr << "OF version: " << OF_VERSION_MAJOR << "." << OF_VERSION_MINOR << "." << OF_VERSION_PATCH << endl;
return sstr.str();
}

0 comments on commit 29b0dda

Please sign in to comment.