libopenmpt: libopenmpt/libopenmpt_version.h Source File

libopenmpt 0.5.41-pre.0+r24821 cross-platform C++ and C library to decode tracked music files

libopenmpt_version.h
Go to the documentation of this file.
1 /*
2 * libopenmpt_version.h
3 * --------------------
4 * Purpose: libopenmpt public interface version
5 * Notes : (currently none)
6 * Authors: OpenMPT Devs
7 * The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
8 */
9
10 #ifndef LIBOPENMPT_VERSION_H
11 #define LIBOPENMPT_VERSION_H
12
18 #define OPENMPT_API_VERSION_MAJOR 0
19
20 #define OPENMPT_API_VERSION_MINOR 5
21
22 #define OPENMPT_API_VERSION_PATCH 41
23
24 #define OPENMPT_API_VERSION_PREREL "-pre.0"
25
26 #define OPENMPT_API_VERSION_IS_PREREL 1
27
38 #define OPENMPT_API_VERSION_MAKE(major, minor, patch) (((major)<<24)|((minor)<<16)|((patch)<<0))
39
41 #define OPENMPT_API_VERSION OPENMPT_API_VERSION_MAKE(OPENMPT_API_VERSION_MAJOR, OPENMPT_API_VERSION_MINOR, OPENMPT_API_VERSION_PATCH)
42
53 #define OPENMPT_API_VERSION_AT_LEAST(major, minor, patch) (OPENMPT_API_VERSION >= OPENMPT_API_VERSION_MAKE((major), (minor), (patch)))
54
65 #define OPENMPT_API_VERSION_BEFORE(major, minor, patch) (OPENMPT_API_VERSION < OPENMPT_API_VERSION_MAKE((major), (minor), (patch)))
66
67 #define OPENMPT_API_VERSION_HELPER_STRINGIZE(x) #x
68 #define OPENMPT_API_VERSION_STRINGIZE(x) OPENMPT_API_VERSION_HELPER_STRINGIZE(x)
69 #define OPENMPT_API_VERSION_STRING OPENMPT_API_VERSION_STRINGIZE(OPENMPT_API_VERSION_MAJOR) "." OPENMPT_API_VERSION_STRINGIZE(OPENMPT_API_VERSION_MINOR) "." OPENMPT_API_VERSION_STRINGIZE(OPENMPT_API_VERSION_PATCH) OPENMPT_API_VERSION_PREREL
70
75 #endif /* LIBOPENMPT_VERSION_H */