UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Channel.inl
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Channel.h"
7
8#if TRACE_PRIVATE_MINIMAL_ENABLED
9
10namespace UE {
11namespace Trace {
12
13extern TRACELOG_API FChannel& TraceLogChannel;
14
16inline bool FChannel::IsEnabled() const
17{
18 return Private::AtomicLoadRelaxed((volatile int32*) &Enabled) >= 0;
19}
20
22inline FChannel::operator bool () const
23{
24 return IsEnabled();
25}
26
28inline bool FChannel::operator | (const FChannel& Rhs) const
29{
30 return IsEnabled() && Rhs.IsEnabled();
31}
32
33} // namespace Trace
34} // namespace UE
35
36#endif // TRACE_PRIVATE_MINIMAL_ENABLED
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const bool
Definition NetworkReplayStreaming.h:178
bool IsEnabled()
Definition IAudioLinkFactory.cpp:13
@ Trace
Definition NetTraceConfig.h:23
FORCEINLINE UE_STRING_CLASS RhsType && Rhs
Definition String.cpp.inl:718
Type AtomicLoadRelaxed(Type volatile *Source)
Definition Atomic.h:59
Definition AdvancedWidgetsModule.cpp:13