Btk
defs.hpp
1
#if !defined(_BTK_DEFS_HPP_)
2
#define _BTK_DEFS_HPP_
3
4
#ifdef __cplusplus
5
#include <cstdint>
6
#else
7
#include <stdint.h>
8
#endif
9
10
#ifdef _WIN32
11
#ifdef _MSC_VER
12
#define BTKEXPORT __declspec(dllexport)
13
#define BTKIMPORT __declspec(dllimport)
14
15
#undef not
16
#undef and
17
#undef or
18
19
#define not !
20
#define and &&
21
#define or ||
22
#else
23
#define BTKEXPORT __attribute__((dllexport))
24
#define BTKIMPORT __attribute__((dllimport))
25
#endif
26
#else
27
//ignore this
28
#define BTKEXPORT
29
#define BTKIMPORT
30
#endif
31
32
#ifdef _BTK_SOURCE
33
//source file
34
#define BTKAPI BTKEXPORT
35
#else
36
#define BTKAPI BTKIMPORT
37
#endif
38
39
#ifdef __cplusplus
40
namespace
Btk
{
41
//Some int defs in SDL2
42
//Uint
43
using
Uint8 = uint8_t;
44
using
Uint16 = uint16_t;
45
using
Uint32 = uint32_t;
46
using
Uint64 = uint64_t;
47
//Sint
48
using
Int8 = int8_t;
49
using
Int16 = int16_t;
50
using
Int32 = int32_t;
51
using
Int64 = int64_t;
52
53
using
Sint8 = int8_t;
54
using
Sint16 = int16_t;
55
using
Sint32 = int32_t;
56
using
Sint64 = int64_t;
57
//end
58
};
59
#endif
60
61
#endif // _BTK_DEFS_HPP_
Btk
This header include many useful containers.
Definition:
async.hpp:7
include
Btk
defs.hpp
Generated by
1.8.13