MessagePack for C++
Toggle main menu visibility
Loading...
Searching...
No Matches
msgpack
version.hpp
Go to the documentation of this file.
1
/*
2
* MessagePack for C++ version information
3
*
4
* Copyright (C) 2008-2013 FURUHASHI Sadayuki and Takatoshi Kondo
5
*
6
* Distributed under the Boost Software License, Version 1.0.
7
* (See accompanying file LICENSE_1_0.txt or copy at
8
* http://www.boost.org/LICENSE_1_0.txt)
9
*/
10
#ifndef MSGPACK_VERSION_HPP
11
#define MSGPACK_VERSION_HPP
12
13
#include "
version_master.hpp
"
14
15
#define MSGPACK_STR(v) #v
16
#define MSGPACK_VERSION_I(maj, min, rev) MSGPACK_STR(maj) "." MSGPACK_STR(min) "." MSGPACK_STR(rev)
17
18
#define MSGPACK_VERSION MSGPACK_VERSION_I(MSGPACK_VERSION_MAJOR, MSGPACK_VERSION_MINOR, MSGPACK_VERSION_REVISION)
19
20
inline
const
char
*
msgpack_version
(
void
) {
21
return
MSGPACK_VERSION
;
22
}
23
24
inline
int
msgpack_version_major
(
void
) {
25
return
MSGPACK_VERSION_MAJOR
;
26
}
27
28
inline
int
msgpack_version_minor
(
void
) {
29
return
MSGPACK_VERSION_MINOR
;
30
}
31
32
inline
int
msgpack_version_revision
(
void
) {
33
return
MSGPACK_VERSION_REVISION
;
34
}
35
36
#endif
/* msgpack/version.hpp */
MSGPACK_VERSION
#define MSGPACK_VERSION
Definition
version.hpp:18
msgpack_version_major
int msgpack_version_major(void)
Definition
version.hpp:24
msgpack_version_minor
int msgpack_version_minor(void)
Definition
version.hpp:28
msgpack_version
const char * msgpack_version(void)
Definition
version.hpp:20
msgpack_version_revision
int msgpack_version_revision(void)
Definition
version.hpp:32
version_master.hpp
MSGPACK_VERSION_REVISION
#define MSGPACK_VERSION_REVISION
Definition
version_master.hpp:3
MSGPACK_VERSION_MINOR
#define MSGPACK_VERSION_MINOR
Definition
version_master.hpp:2
MSGPACK_VERSION_MAJOR
#define MSGPACK_VERSION_MAJOR
Definition
version_master.hpp:1
Generated by
1.17.0