1 // Copyright (c) 2018 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 /*======================================================================
16 // Purpose: Defines macros identifying current version of Inspector
17 // The version is equal to current OCCT version and used to support compile compatibility
18 // to previous OCCT versions interface.
19 // To compile Inspector with earlier version of OCCT, change version variable here to needed OCCT version.
21 // TINSPECTORAPI_VERSION_MAJOR : (integer) number identifying major version
22 // TINSPECTORAPI_VERSION_MINOR : (integer) number identifying minor version
23 // TINSPECTORAPI_VERSION_MAINTENANCE : (integer) number identifying maintenance version
24 // TINSPECTORAPI_VERSION_HEX : (hex) complete number as hex, two positions per each of major, minor, and patch number
26 //======================================================================*/
28 #ifndef _TInspectorAPI_Version_HeaderFile
29 #define _TInspectorAPI_Version_HeaderFile
31 #include <Standard_Version.hxx>
33 // Primary definitions
34 #define TINSPECTORAPI_VERSION_MAJOR OCC_VERSION_MAJOR
35 #define TINSPECTORAPI_VERSION_MINOR OCC_VERSION_MINOR
36 #define TINSPECTORAPI_VERSION_MAINTENANCE 0//OCC_VERSION_MAINTENANCE
38 // Derived: complete version as hex (0x0'major'0'minor'0'maintenance')
39 #define TINSPECTORAPI_VERSION_HEX (TINSPECTORAPI_VERSION_MAJOR << 16 | TINSPECTORAPI_VERSION_MINOR << 8 | TINSPECTORAPI_VERSION_MAINTENANCE)
41 #endif /* _TInspectorAPI_Version_HeaderFile */