qxLib
include
qx
macros
config.h
Go to the documentation of this file.
1
/**
2
3
@file config.h
4
@author Khrapov
5
@date 25.09.2020
6
@copyright © Nick Khrapov, 2021. All right reserved.
7
8
**/
9
#pragma once
10
11
//---------------------------------- platform ----------------------------------
12
13
#if defined(_WIN64) || defined(_WIN32)
14
#define QX_WIN 1
15
#else
16
#define QX_WIN 0
17
#endif
18
19
#ifdef __APPLE__
20
#define QX_MACOS 1
21
#else
22
#define QX_MACOS 0
23
#endif
24
25
#ifdef __linux__
26
#define QX_LINUX 1
27
#else
28
#define QX_LINUX 0
29
#endif
30
31
//---------------------------------- compiler ----------------------------------
32
33
#ifdef _MSC_VER
34
#define QX_MSVC 1
35
#else
36
#define QX_MSVC 0
37
#endif
38
39
#ifdef __clang__
40
#define QX_CLANG 1
41
#else
42
#define QX_CLANG 0
43
#endif
44
45
#ifdef __GNUG__
46
#define QX_GNU 1
47
#else
48
#define QX_GNU 0
49
#endif
50
51
//------------------------------------ build -----------------------------------
52
53
#ifndef QX_DEBUG
54
#ifdef _DEBUG
55
#define QX_DEBUG 1
56
#else
57
#define QX_DEBUG 0
58
#endif
59
#endif
60
61
#ifndef QX_RELEASE
62
#ifdef _DEBUG
63
#define QX_RELEASE 0
64
#else
65
#define QX_RELEASE 1
66
#endif
67
#endif
68
69
#ifndef QX_REL_WITH_DEBUG_INFO
70
#define QX_REL_WITH_DEBUG_INFO 0
71
#endif
72
73
#ifndef QX_MIN_SIZE_RELEASE
74
#define QX_MIN_SIZE_RELEASE 0
75
#endif
Generated by
1.9.1