1 /* Hapy is a public domain software. See Hapy README file for the details. */
2 
3 #ifndef HAPY_VERSION__H
4 #define HAPY_VERSION__H
5 
6 #include <Hapy/Top.h>
7 
8 namespace Hapy {
9 
10 // this internal representation may change
11 typedef unsigned long int Version;
12 
13 // returns version suitable for comparison
version()14 inline Version version() {
15 	typedef unsigned long int Component;
16 	const Component format = 0U;
17 	const Component major = 0U;
18 	const Component minor = 0U;
19 	const Component plevel = 6U;
20 	const Component special = 0U;
21 
22 	return
23 		(format << 30) +
24 		(major << 24) +
25 		(minor << 16) +
26 		(plevel << 8) +
27 		special;
28 }
29 
30 } // namespace
31 
32 #endif
33