Z / libzen
0.0.0
Header-only C99 library
Toggle main menu visibility
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1
#ifndef ZEN_VERSION_VERSION_H
2
#define ZEN_VERSION_VERSION_H
3
7
8
#include "
zen/detail/inline.h
"
9
10
#include <stdint.h>
11
13
#define LIBZEN_VERSION_MAJOR 0
15
#define LIBZEN_VERSION_MINOR 0
17
#define LIBZEN_VERSION_PATCH 0
18
20
typedef
struct
zen_version_t
{
21
uint32_t
major_
;
22
uint32_t
minor_
;
23
uint32_t
patch_
;
24
}
zen_version_t
;
25
27
ZEN_STATIC_INLINE
zen_version_t
zen_get_version
(
void
) {
28
zen_version_t
_version;
29
_version.
major_
= (uint32_t)
LIBZEN_VERSION_MAJOR
;
30
_version.
minor_
= (uint32_t)
LIBZEN_VERSION_MINOR
;
31
_version.
patch_
= (uint32_t)
LIBZEN_VERSION_PATCH
;
32
return
_version;
33
}
34
35
#endif
/* ZEN_VERSION_VERSION_H */
inline.h
ZEN_STATIC_INLINE
#define ZEN_STATIC_INLINE
Definition
inline.h:9
zen_version_t
Definition
version.h:20
zen_version_t::patch_
uint32_t patch_
Definition
version.h:23
zen_version_t::major_
uint32_t major_
Definition
version.h:21
zen_version_t::minor_
uint32_t minor_
Definition
version.h:22
LIBZEN_VERSION_MAJOR
#define LIBZEN_VERSION_MAJOR
Definition
version.h:13
zen_get_version
ZEN_STATIC_INLINE zen_version_t zen_get_version(void)
Definition
version.h:27
LIBZEN_VERSION_MINOR
#define LIBZEN_VERSION_MINOR
Definition
version.h:15
LIBZEN_VERSION_PATCH
#define LIBZEN_VERSION_PATCH
Definition
version.h:17
zen
version
version.h
Generated by
1.18.0