/src/msgpack-c/include/msgpack/version.hpp
Line | Count | Source |
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 | 0 | inline const char* msgpack_version(void) { |
21 | 0 | return MSGPACK_VERSION; |
22 | 0 | } |
23 | | |
24 | 0 | inline int msgpack_version_major(void) { |
25 | 0 | return MSGPACK_VERSION_MAJOR; |
26 | 0 | } |
27 | | |
28 | 0 | inline int msgpack_version_minor(void) { |
29 | 0 | return MSGPACK_VERSION_MINOR; |
30 | 0 | } |
31 | | |
32 | 0 | inline int msgpack_version_revision(void) { |
33 | 0 | return MSGPACK_VERSION_REVISION; |
34 | 0 | } |
35 | | |
36 | | #endif /* msgpack/version.hpp */ |