OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
OTClassHelper.h
Go to the documentation of this file.
1
5
// ###########################################################################################################################################################################################################################################################################################################################
6
7
#pragma once
8
9
// OpenTwin header
10
#include <
OTSystem/ArchitectureInfo.h
>
11
14
#define OT_DECL_NOCOPY(___class) ___class(const ___class&) = delete; ___class& operator = (const ___class&) = delete;
15
18
#define OT_DECL_NOMOVE(___class) ___class(___class&&) = delete; ___class& operator = (___class&&) = delete;
19
22
#define OT_DECL_NODEFAULT(___class) ___class(void) = delete;
23
28
#define OT_DECL_STATICONLY(___class) OT_DECL_NODEFAULT(___class) OT_DECL_NOCOPY(___class) OT_DECL_NOMOVE(___class)
29
30
#if defined(OT_COMPILER_MSC)
31
34
#define OT_DECL_DEPRECATED(___message) __declspec(deprecated(___message))
35
36
#elif defined(OT_COMPILER_GNU) || defined(OT_COMPILER_CLANG)
37
40
#define OT_DECL_DEPRECATED(___message) __attribute__((deprecated))
41
42
#endif
43
46
#define OT_UNUSED(___unusedVariable) (void)(___unusedVariable);
ArchitectureInfo.h
The ArchitectureInfo contains multiple definitions that specify the current OS architecture.
Libraries
OTCore
include
OTCore
OTClassHelper.h
Generated by
1.10.0