Warning, /libraries/polkit-qt-1/polkitqt1-version.h.cmake is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2007 Sebastian Trueg <trueg@kde.org> 0003 SPDX-FileCopyrightText: 2009 Dario Freddi <drf@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef _POLKITQT1_VERSION_H_ 0009 #define _POLKITQT1_VERSION_H_ 0010 0011 /// @brief PolkitQt-1 version as string at compile time. 0012 #define POLKITQT1_VERSION_STRING "${POLKITQT-1_VERSION_STRING}" 0013 0014 /// @brief The major PolkitQt-1 version number at compile time 0015 #define POLKITQT1_VERSION_MAJOR ${POLKITQT-1_VERSION_MAJOR} 0016 0017 /// @brief The minor PolkitQt-1 version number at compile time 0018 #define POLKITQT1_VERSION_MINOR ${POLKITQT-1_VERSION_MINOR} 0019 0020 /// @brief The PolkitQt-1 patch version number at compile time 0021 #define POLKITQT1_VERSION_PATCH ${POLKITQT-1_VERSION_PATCH} 0022 0023 /** 0024 * \brief Create a unique number from the major, minor and release number of a %PolkitQt-1 version 0025 * 0026 * This function can be used for preprocessing. 0027 */ 0028 #define POLKITQT1_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c)) 0029 0030 /** 0031 * \brief %PolkitQt-1 Version as a unique number at compile time 0032 * 0033 * This macro calculates the %PolkitQt-1 version into a number. It is mainly used 0034 * through POLKITQT1_IS_VERSION in preprocessing. 0035 */ 0036 #define POLKITQT1_VERSION \ 0037 POLKITQT1_MAKE_VERSION(POLKITQT1_VERSION_MAJOR,POLKITQT1_VERSION_MINOR,POLKITQT1_VERSION_PATCH) 0038 0039 /** 0040 * \brief Check if the %PolkitQt-1 version matches a certain version or is higher 0041 * 0042 * This macro is typically used to compile conditionally a part of code: 0043 * \code 0044 * #if POLKITQT1_IS_VERSION(2,1) 0045 * // Code for PolkitQt-1 2.1 0046 * #else 0047 * // Code for PolkitQt-1 2.0 0048 * #endif 0049 * \endcode 0050 */ 0051 #define POLKITQT1_IS_VERSION(a,b,c) ( POLKITQT1_VERSION >= POLKITQT1_MAKE_VERSION(a,b,c) ) 0052 0053 #endif