Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCoding/Private/External/LC_Assert.h
henrik karlsson bd5352a0c3 [UE]
* More fixes to be preprocessor conformant (/Zc:preprocessor)

#rb none
#preflight skipped

[CL 22705198 by henrik karlsson in ue5-main branch]
2022-10-21 19:52:08 -04:00

21 lines
591 B
C

// Copyright 2011-2020 Molecular Matters GmbH, all rights reserved.
#pragma once
// BEGIN EPIC MOD
#include "LC_Platform.h"
// END EPIC MOD
#include LC_PLATFORM_INCLUDE(LC_Debugger)
// BEGIN EPIC MOD
#include "LC_Logging.h"
// END EPIC MOD
#if LC_DEBUG
# define LC_ASSERT_BREAKPOINT() (Debugger::IsConnected()) ? LC_DEBUGGER_BREAKPOINT() : (void)true
# define LC_ASSERT(_condition, _msg) (_condition) ? (void)true : (LC_ERROR_DEV("%s", _msg), LC_ASSERT_BREAKPOINT())
#else
# define LC_BREAKPOINT() (void)true
# define LC_ASSERT(_condition, _msg) LC_UNUSED(_condition)
#endif