Ditto
3.0.3
include
Version.hpp
1
#ifndef _DITTO_VERSION_
2
#define _DITTO_VERSION_
3
4
#include "dittoffi.hpp"
5
6
#include <sstream>
7
#include <string>
8
10
#define DITTO_VERSION_MAJOR 3
11
13
#define DITTO_VERSION_MINOR 0
14
16
#define DITTO_VERSION_PATCH 3
17
19
#define DITTO_VERSION_PRERELEASE ""
20
28
#define DITTO_VERSION \
29
(DITTO_VERSION_MAJOR * 1000000 + DITTO_VERSION_MINOR * 1000 + \
30
DITTO_VERSION_PATCH)
31
37
std::string ditto_semver_version();
38
39
// clang-format off
40
#if defined _WIN32
41
#define PLATFORM PLATFORM_WINDOWS
42
#elif defined __ANDROID__
43
#define PLATFORM PLATFORM_ANDROID
44
#elif defined __linux__
45
#define PLATFORM PLATFORM_LINUX
46
#elif defined __APPLE__
47
#include "TargetConditionals.h"
48
#if TARGET_OS_OSX
49
#define PLATFORM PLATFORM_MAC
50
#elif TARGET_OS_IOS
51
#define PLATFORM PLATFORM_IOS
52
#endif
53
#else
54
#define PLATFORM PLATFORM_UNKNOWN
55
#endif
56
// clang-format on
57
58
#endif
Generated by
1.9.3