mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 18:29:53 +00:00
cpp: adds MSGPACK_VERSION{,_MAJOR,_MINOR} macros and msgpack{,_major,_minor} functions
This commit is contained in:
parent
b3987e2402
commit
3af10a1d00
7 changed files with 78 additions and 5 deletions
17
cpp/src/version.c
Normal file
17
cpp/src/version.c
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "msgpack.h"
|
||||
|
||||
const char* msgpack_version(void)
|
||||
{
|
||||
return MSGPACK_VERSION;
|
||||
}
|
||||
|
||||
int msgpack_version_major(void)
|
||||
{
|
||||
return MSGPACK_VERSION_MAJOR;
|
||||
}
|
||||
|
||||
int msgpack_version_minor(void)
|
||||
{
|
||||
return MSGPACK_VERSION_MINOR;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue