Pogosim
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1/*
2 * This file is modified by hand when a new release is prepared.
3*/
4#ifndef POGOSIM_VERSION_H
5#define POGOSIM_VERSION_H
11
12#define POGOLIB_RELEASE_VERSION "v2.6"
13
14
15/* ────────── 1. Canonical numeric components ────────── */
16#define POGOSIM_VERSION_MAJOR 0
17#define POGOSIM_VERSION_MINOR 10
18#define POGOSIM_VERSION_PATCH 9
19
20/* ────── 2. Internal helpers for stringification (private) ────── */
21#define POGOSIM_VERSION__STR_IMPL(x) #x
22#define POGOSIM_VERSION__STR(x) POGOSIM_VERSION__STR_IMPL(x)
23
24/* ─── 3. Human-readable “vX.Y.Z” ─── */
25#define POGOSIM_VERSION \
26 "v" POGOSIM_VERSION__STR(POGOSIM_VERSION_MAJOR) "." \
27 POGOSIM_VERSION__STR(POGOSIM_VERSION_MINOR) "." \
28 POGOSIM_VERSION__STR(POGOSIM_VERSION_PATCH)
29
30/* Alias */
31#define POGOSIM_VERSION_STRING POGOSIM_VERSION
32
33/* ───── 4. Numeric helpers inspired from SDL ───── */
34#define POGOSIM_VERSION_ENCODE(x, y, z) ((x) * 1000000 + (y) * 1000 + (z))
35
36#define POGOSIM_VERSION_COMPILED \
37 POGOSIM_VERSION_ENCODE(POGOSIM_VERSION_MAJOR, \
38 POGOSIM_VERSION_MINOR, \
39 POGOSIM_VERSION_PATCH)
40
41#define POGOSIM_VERSION_ATLEAST(x, y, z) \
42 (POGOSIM_VERSION_COMPILED >= POGOSIM_VERSION_ENCODE((x), (y), (z)))
43
44#endif // POGOSIM_VERSION_H
45
46// MODELINE "{{{1
47// vim:expandtab:softtabstop=4:shiftwidth=4:fileencoding=utf-8
48// vim:foldmethod=marker