Kernel Tuning Toolkit 2.3
 
Loading...
Searching...
No Matches
KttPlatform.h
Go to the documentation of this file.
1
4#pragma once
5
6#include <cstdint>
7#include <string>
8
9#ifndef KTT_API
10#if defined(_MSC_VER)
11 #pragma warning(disable : 4251) // Irrelevant MSVC warning as long as exported classes have no public attributes.
12
13 #if defined(KTT_LIBRARY)
14 #define KTT_API __declspec(dllexport)
15 #else
16 #define KTT_API __declspec(dllimport)
17 #endif // KTT_LIBRARY
18
19 #define KTT_VIRTUAL_API virtual
20 #define KTT_VISIBILITY_HIDDEN
21#else
22 #define KTT_API
23 #define KTT_VIRTUAL_API
24 #define KTT_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
25#endif // _MSC_VER
26#endif // KTT_API
27
30#define KTT_VERSION_MAJOR 2
31
34#define KTT_VERSION_MINOR 3
35
38#define KTT_VERSION_PATCH 0
39
40namespace ktt
41{
42
47KTT_API uint32_t GetKttVersion();
48
53KTT_API std::string GetKttVersionString();
54
55} // namespace ktt
Definition KttPlatform.h:41
uint32_t GetKttVersion()
std::string GetKttVersionString()