MessagePack for C++
Loading...
Searching...
No Matches
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
20inline const char* msgpack_version(void) {
21 return MSGPACK_VERSION;
22}
23
24inline int msgpack_version_major(void) {
26}
27
28inline int msgpack_version_minor(void) {
30}
31
32inline int msgpack_version_revision(void) {
34}
35
36#endif /* msgpack/version.hpp */
#define MSGPACK_VERSION
Definition version.hpp:18
int msgpack_version_major(void)
Definition version.hpp:24
int msgpack_version_minor(void)
Definition version.hpp:28
const char * msgpack_version(void)
Definition version.hpp:20
int msgpack_version_revision(void)
Definition version.hpp:32
#define MSGPACK_VERSION_REVISION
Definition version_master.hpp:3
#define MSGPACK_VERSION_MINOR
Definition version_master.hpp:2
#define MSGPACK_VERSION_MAJOR
Definition version_master.hpp:1