Files
GDevelop/IDE/CompilationChecker.cpp
T
Florian 91e2ebba7b Some changes to use new CommonTools.h instead of old algo.h/StdAlgo.h
Simple test of checking the validity of a text.
Corrected non verification of validity of event to paste.

git-svn-id: svn://localhost@114 8062f311-0dae-4547-b526-b8ab9ac864a5
2010-05-17 19:20:40 +00:00

26 lines
882 B
C++

#include "CompilationChecker.h"
#include "GDL/Version.h"
#include "GDL/VersionWrapper.h"
#include "GDL/CommonTools.h"
bool CompilationChecker::EnsureCorrectGDLVersion()
{
string versionString = ToString(GDLVersionWrapper::Major()) + ", " + ToString(GDLVersionWrapper::Minor()) + ", " +
ToString(GDLVersionWrapper::Build()) + ", " + ToString(GDLVersionWrapper::Revision());
if (versionString != RC_FILEVERSION_STRING)
{
char beep = 7;
cout << endl;
cout << "-- WARNING ! --" << beep << endl;
cout << "Compiled with a different version of GDL." << endl;
cout << "GDL DLL Version :" << versionString << endl;
cout << "Compiled with version :" << RC_FILEVERSION_STRING << endl;
cout << "---------------" << endl;
return false;
}
return true;
}