CommonLib
Toggle main menu visibility
Loading...
Searching...
No Matches
CommonLib.h
Go to the documentation of this file.
1
#
pragma
once
2
3
#
if
defined
(
_MSVC_LANG
)
4
#
define
__CMNLIB_INTERNAL_CPP_VERSION
_MSVC_LANG
5
#
elif
defined
(
__cplusplus
)
6
#
define
__CMNLIB_INTERNAL_CPP_VERSION
__cplusplus
7
#
endif
8
9
#
if
!
defined
(
__CMNLIB_INTERNAL_CPP_VERSION
)
||
__CMNLIB_INTERNAL_CPP_VERSION
<
202002L
10
#
define
__CMNLIB_H__
11
#
error
CommonLib
requires
C
++
20
or
later
.
12
#
endif
13
14
#
ifndef
__CMNLIB_H__
15
#
define
__CMNLIB_H__
16
17
#
ifdef
CMNLIB_NO_NAMESPACE_ALIASES
18
#
define
__CMNLIB_INTERNAL_MAKE_NAMESPACE_ALIAS
(
PARENT
,
NAME
,
ALIAS
)
19
#
else
20
#
define
__CMNLIB_INTERNAL_MAKE_NAMESPACE_ALIAS
(
PARENT
,
NAME
,
ALIAS
)
21
namespace
PARENT
{
namespace
ALIAS
=
NAME
;
}
22
#
endif
23
24
#
if
defined
(
_M_X64
)
||
defined
(
_M_AMD64
)
||
defined
(
__x86_64__
)
25
#
define
CMNLIB_X64
26
#
elif
defined
(
_M_IX86
)
||
defined
(
__i386__
)
27
#
define
CMNLIB_X86
28
#
elif
defined
(
_M_ARM64
)
||
defined
(
__aarch64__
)
29
#
define
CMNLIB_ARM64
30
#
elif
defined
(
_M_ARM
)
||
defined
(
__arm__
)
31
#
define
CMNLIB_ARM
32
#
endif
33
34
#
include
<
cstdint
>
35
#
include
<
stdarg
.
h
>
36
37
#
include
"cfg/cfg.h"
38
#
include
"diag/diag.h"
39
#
include
"hook/hook.h"
40
#
include
"host/host.h"
41
#
include
"io/io.h"
42
#
include
"mem/mem.h"
43
#
include
"ut/ut.h"
44
45
#
if
!
defined
(
CMNLIB_HEADER_ONLY
)
&&
defined
(
__CMNLIB_INTERNAL_STATIC_LIB_ENROLMENT
)
46
#
pragma
comment
(
lib
,
"CommonLib.lib"
)
47
#
endif
48
49
#
endif
// __CMNLIB_H__
__CMNLIB_H__
#define __CMNLIB_H__
Definition
CommonLib.h:10
include
CommonLib.h
Generated by
1.18.0