File: pps-version.h.in

package info (click to toggle)
papers 49.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 21,044 kB
  • sloc: ansic: 37,728; sh: 197; xml: 127; makefile: 113
file content (43 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// SPDX-License-Identifier: LGPL-2.1-or-later
/*
 * Copyright © 2009 Christian Persch
 */

#pragma once

/**
 * SECTION:pps-version
 * @short_description: Library version checks
 *
 * These macros enable compile time checks of the library version.
 */

/**
 * PPS_MAJOR_VERSION:
 *
 * The major version number of the EV library
 * (e.g. in version 3.1.4 this is 3).
 */

#define PPS_MAJOR_VERSION (@PPS_MAJOR_VERSION@)

/**
 * PPS_MINOR_VERSION:
 *
 * The minor version number of the EV library
 * (e.g. in version 3.1.4 this is 1).
 */
#define PPS_MINOR_VERSION (@PPS_MINOR_VERSION@)

/**
 * PPS_CHECK_VERSION:
 * @major: required major version
 * @minor: required minor version
 *
 * Macro to check the library version at compile time.
 * It returns <literal>1</literal> if the version of EV is greater or
 * equal to the required one, and <literal>0</literal> otherwise.
 */
#define PPS_CHECK_VERSION(major,minor) \
  (PPS_MAJOR_VERSION > (major) || \
   (PPS_MAJOR_VERSION == (major) && PPS_MINOR_VERSION > (minor))