Hi all, Recently I've added new macro OB_VERSION_CHECK, inspired by Qt library. It can be used for conditional compilation of software which is intended to be compatible with older OB versions but wants to use new features if newer OB version is used.
Sample usage: #if (OB_VERSION >= OB_VERSION_CHECK(2, 2, 99)) // Some code depending on current OB trunk // ... #else // Workaround for older versions // ... #endif OB_VERSION is defined as OB_VERSION_CHECK(@BABEL_MAJ_VER@, @BABEL_MIN_VER@, @BABEL_PATCH_VER@) where fields in @@ are filled in by CMake. P.S. In Qt similar value is hardcoded hex number, but I thought it may be not so obvious why (2,2,99) is represented as 0x020263. -- Regards, Konstantin ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ OpenBabel-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbabel-devel
