10#ifndef UE_INCLUDE_SOURCE_LOCATION
11#define UE_INCLUDE_SOURCE_LOCATION !UE_BUILD_SHIPPING
14#if UE_INCLUDE_SOURCE_LOCATION && defined(__cpp_lib_source_location)
15#include <source_location>
22#if UE_INCLUDE_SOURCE_LOCATION
23 #ifdef __cpp_lib_source_location
24 using FSourceLocationImpl = std::source_location;
26 struct FSourceLocationImpl
34 FSourceLocationImpl Location;
37 Location.FileName =
InFile;
42 constexpr FSourceLocationImpl()
noexcept =
default;
53 constexpr const char* file_name()
const noexcept
57 constexpr const char* function_name()
const noexcept
65 const char* FileName =
nullptr;
66 const char* FunctionName =
nullptr;
70 struct FSourceLocationImpl{
71 static UE_CONSTEVAL FSourceLocationImpl current()
noexcept
75 constexpr FSourceLocationImpl()
noexcept =
default;
84 constexpr const char* file_name()
const noexcept
88 constexpr const char* function_name()
const noexcept
119 return Impl.column();
123 return Impl.file_name();
127 return Impl.function_name();
136 const FSourceLocationImpl
Impl;
OODEFFUNC typedef const char int line
Definition oodle2.h:678
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
Definition SourceLocation.h:21
constexpr const char * GetFileName() const noexcept
Definition SourceLocation.h:121
static UE_CONSTEVAL FSourceLocation Current(FSourceLocationImpl Impl=FSourceLocationImpl::current()) noexcept
Definition SourceLocation.h:107
constexpr uint32 GetLine() const noexcept
Definition SourceLocation.h:113
constexpr const char * GetFunctionName() const noexcept
Definition SourceLocation.h:125
constexpr uint32 GetColumn() const noexcept
Definition SourceLocation.h:117
Definition ExpressionParserTypes.h:21
Definition AdvancedWidgetsModule.cpp:13