![]() |
MCRO
C++23 utilities for Unreal Engine.
|
Use this header and End.h
in tandem to include third-party library headers which may not tolerate Unreal's common vocabulary macros or its stricter warning policies.
More...
#include "Mcro/Macros.h"
Go to the source code of this file.
Macros | |
#define | MCRO_ALLOW_TEXT 0 |
#define | MCRO_ALLOW_TRUE 0 |
#define | MCRO_ALLOW_FALSE 0 |
#define | MCRO_ALLOW_MAX_uint8 0 |
#define | MCRO_ALLOW_MAX_uint16 0 |
#define | MCRO_ALLOW_MAX_uint32 0 |
#define | MCRO_ALLOW_MAX_int32 0 |
#define | MCRO_ALLOW_CONSTEXPR 0 |
#define | MCRO_ALLOW_PI 0 |
#define | MCRO_ALLOW_dynamic_cast 0 |
#define | MCRO_ALLOW_VARARGS 0 |
#define | MCRO_ALLOW_CDECL 0 |
#define | MCRO_ALLOW_STDCALL 0 |
#define | MCRO_ALLOW_FORCEINLINE 0 |
#define | MCRO_ALLOW_FORCENOINLINE 0 |
#define | MCRO_ALLOW_ABSTRACT 0 |
#define | MCRO_ALLOW_LINE_TERMINATOR 0 |
#define | MCRO_ALLOW_LINE_TERMINATOR_ANSI 0 |
#define | MCRO_ALLOW_DLLEXPORT 0 |
#define | MCRO_ALLOW_DLLIMPORT 0 |
#define | MCRO_ALLOW_LIKELY 0 |
#define | MCRO_ALLOW_UNLIKELY 0 |
#define | MCRO_ALLOW_RESTRICT 0 |
#define | MCRO_ALLOW_MOBILE 0 |
#define | MCRO_ALLOW_CONSOLE 0 |
#define | MCRO_ALLOW_DEFAULTS 0 |
#define | NON_UNREAL_INCLUDE_REGION 1 |
Use this header and End.h
in tandem to include third-party library headers which may not tolerate Unreal's common vocabulary macros or its stricter warning policies.
With MCRO_ALLOW_*
macros one can control if a the associated macro should be hidden from the library or not. By default they're all disallowed (0). For example some COM headers expect TEXT
to be defined, so one can do
Similarly platform specific include guards like AllowWindowsPlatformTypes
and AllowWindowsPlatformAtomics
can be controlled with MCRO_ALLOW_<platform>_TYPES
macro. These are allowed by default (1).
In most cases these 'allow' macros are not needed. Only use them when the wrapped library headers cause compile error for a missing macro they expected or if 'platform-types' interfere with them. The meaning of these macros are reset to their default after each inclusion of End.h
Definition in file Start.h.