37 lines
847 B
C++
37 lines
847 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Channel.h"
|
|
#include "Trace/Detail/Atomic.h"
|
|
|
|
#if TRACE_PRIVATE_MINIMAL_ENABLED
|
|
|
|
namespace UE {
|
|
namespace Trace {
|
|
|
|
extern TRACELOG_API FChannel& TraceLogChannel;
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
inline bool FChannel::IsEnabled() const
|
|
{
|
|
return Private::AtomicLoadRelaxed((volatile int32*) &Enabled) >= 0;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
inline FChannel::operator bool () const
|
|
{
|
|
return IsEnabled();
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
inline bool FChannel::operator | (const FChannel& Rhs) const
|
|
{
|
|
return IsEnabled() && Rhs.IsEnabled();
|
|
}
|
|
|
|
} // namespace Trace
|
|
} // namespace UE
|
|
|
|
#endif // TRACE_PRIVATE_MINIMAL_ENABLED
|