Hideaki Tai / msgpack-embedded

Dependents:   hello_message_pack

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers version.h Source File

version.h

00001 /*
00002  * MessagePack for C version information
00003  *
00004  * Copyright (C) 2008-2009 FURUHASHI Sadayuki
00005  *
00006  *    Distributed under the Boost Software License, Version 1.0.
00007  *    (See accompanying file LICENSE_1_0.txt or copy at
00008  *    http://www.boost.org/LICENSE_1_0.txt)
00009  */
00010 #ifndef MSGPACK_VERSION_H
00011 #define MSGPACK_VERSION_H
00012 
00013 #ifdef __cplusplus
00014 extern "C" {
00015 #endif
00016 
00017 MSGPACK_DLLEXPORT
00018 const char* msgpack_version(void);
00019 MSGPACK_DLLEXPORT
00020 int msgpack_version_major(void);
00021 MSGPACK_DLLEXPORT
00022 int msgpack_version_minor(void);
00023 MSGPACK_DLLEXPORT
00024 int msgpack_version_revision(void);
00025 
00026 #include "version_master.h"
00027 
00028 #define MSGPACK_STR(v) #v
00029 #define MSGPACK_VERSION_I(maj, min, rev) MSGPACK_STR(maj) "." MSGPACK_STR(min) "." MSGPACK_STR(rev)
00030 
00031 #define MSGPACK_VERSION MSGPACK_VERSION_I(MSGPACK_VERSION_MAJOR, MSGPACK_VERSION_MINOR, MSGPACK_VERSION_REVISION)
00032 
00033 #ifdef __cplusplus
00034 }
00035 #endif
00036 
00037 #endif /* msgpack/version.h */
00038