MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
Macros.h
Go to the documentation of this file.
1/** @noop License Comment
2 * @file
3 * @copyright
4 * This Source Code is subject to the terms of the Mozilla Public License, v2.0.
5 * If a copy of the MPL was not distributed with this file You can obtain one at
6 * https://mozilla.org/MPL/2.0/
7 *
8 * @author David Mórász
9 * @date 2025
10 */
11
12#pragma once
13
14#include "CoreMinimal.h"
15#include "HAL/PreprocessorHelpers.h"
16
17#define PREPROCESSOR_TO_TEXT(x) TEXT(PREPROCESSOR_TO_STRING(x))
18
19#if UE_BUILD_SHIPPING
20
21/**
22 * UE_DEBUG_BREAK is disabled in all non-editor builds, not only in shipping. MCRO_DEBUG_BREAK however is only
23 * disabled in shipping,
24 */
25#define MCRO_DEBUG_BREAK() ((void)0)
26
27#else
28
29/**
30 * UE_DEBUG_BREAK is disabled in all non-editor builds, not only in shipping. MCRO_DEBUG_BREAK however is only
31 * disabled in shipping,
32 */
33#define MCRO_DEBUG_BREAK() ((void)(FPlatformMisc::IsDebuggerPresent() && ([] () { UE_DEBUG_BREAK_IMPL(); } (), 1)))
34
35#endif