VR-Exchange 2.2 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
widgets
commonWidgetsVersion.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
6
7
// \file versions.h
8
// \brief Header ensures that the library is versioned correctly.
9
10
// Check if version has already been set. If so we cache the value to check
11
// later if the version has changed.
12
#ifdef DT_LIB_MAJOR_VERSION
13
#define DT_LIB_OLD_MAJOR_VERSION DT_LIB_MAJOR_VERSION
14
#undef DT_LIB_MAJOR_VERSION
15
#endif
16
#ifdef DT_LIB_MINOR_VERSION
17
#define DT_LIB_OLD_MINOR_VERSION DT_LIB_MINOR_VERSION
18
#undef DT_LIB_MINOR_VERSION
19
#endif
20
22
//Change 1_1 with each new version. Must use only valid identifier characters.
23
#define DT_LIB_MAJOR_VERSION 2
24
#define DT_LIB_MINOR_VERSION 5
25
26
27
#define DtCommonWidgetsVersion "2.7tot"
28
29
//--------------------------------------------------
32
//--------------------------------------------------
33
// Common Widgets 2.1 RELEASE NUMBER = 1
34
// Common Widgets 2.3 RELEASE NUMBER = 3
35
// Common Widgets 2.4 RELEASE NUMBER = 4
36
// Common Widgets 2.5 RELEASE NUMBER = 5
37
// Common Widgets 2.6 RELEASE NUMBER = 6
38
// Common Widgets 2.7 RELEASE NUMBER = 7
39
#define COMMON_WIDGETS_RELEASE_NUM 7
40
41
// Check to see if the version has changed.
42
#ifdef DT_LIB_OLD_MAJOR_VERSION
43
#if DT_LIB_OLD_MAJOR_VERSION != DT_LIB_MAJOR_VERSION
44
#ifndef DT_USE_MULTIPLE_VERSIONS
45
#error Using multiple versions of MAKVrExchange without defining DT_USE_MULTIPLE_VERSIONS.
46
#endif
47
#endif
48
#undef DT_LIB_OLD_MAJOR_VERSION
49
#endif
50
51
// Check to see if the minor version.
52
#ifdef DT_LIB_OLD_MINOR_VERSION
53
#if DT_LIB_OLD_MINOR_VERSION != DT_LIB_MINOR_VERSION
54
#ifndef DT_USE_MULTIPLE_VERSIONS
55
#error Using multiple versions of MAKVrExchange without defining DT_USE_MULTIPLE_VERSIONS.
56
#endif
57
#endif
58
#undef DT_LIB_OLD_MINOR_VERSION
59
#endif
60
61
62
// Necessary Merge Macros for creating the namespace
63
#ifndef DT_MERGE_IDS
64
#define DT_MERGE_IDS(Part1,Part2,Part3) Part1##Part2##Part3
65
#endif
66
#ifndef DT_MERGE_MACROS
67
#define DT_MERGE_MACROS(Part1,Part2) DT_MERGE_IDS(Part1,_,Part2)
68
#endif
69
70
// Alias MAKVrExchange to DT_LIB_NAMESPACE _ DT_LIB_MAJOR_VERSION _ DT_LIB_MINOR_VERSION
71
// Example: MAKVrExchange -> MAKVrExchange_1_0
72
#ifndef MAKVrExchange
73
#undef MAKVrExchange
74
#endif
75
#define MAKVrExchange DT_MERGE_MACROS(DT_LIB_NAMESPACE,DT_MERGE_MACROS(DT_LIB_MAJOR_VERSION,DT_LIB_MINOR_VERSION))
Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)