Navigation
API > API/Runtime > API/Runtime/Core
Description
Returns an adapter that formats source location with file and line only.
//Examplewithstring:FStringLocationStr=UE::SourceLocation::FileAndLine(SourceLoc).ToString();//Examplewithstringbuilder:Builder<<"Errorat"<
| Name | UE::SourceLocation::FileAndLine |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/SourceLocationUtils.h |
| Include Path | #include "Misc/SourceLocationUtils.h" |
namespace UE
{
namespace SourceLocation
{
FFileAndLineAdapter UE::SourceLocation::FileAndLine
(
const FSourceLocation & Location
)
}
}
Adapter for file and line formatting.
Parameters
| Name | Remarks |
|---|---|
| Location | The source location to adapt. |