Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FSourceLocation
Description
Saves current source file location into a RAII container that can be used to log/save the information about the caller Usage:
include "SourceLocation.h" #include "SourceLocationUtils.h"
void MyFunction(int Param1, int Param2, UE::FSourceLocation Location = UE::FSourceLocation::Current()) { UE_LOG(TEXT("My caller is %s"), *UE::SourceLocation::Full(Location).ToString()); }
| Name | Current |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/SourceLocation.h |
| Include Path | #include "Misc/SourceLocation.h" |
static FSourceLocation Current
(
FSourceLocationImpl Impl
)