UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FunctionMap.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if (defined(__AUTORTFM) && __AUTORTFM)
6
7#include "AutoRTFM.h"
8
9namespace AutoRTFM
10{
11
12// Dumps statistics about the function map to LOG_INFO.
14
15// Adds all the open to closed function mappings from the linked list of tables to the function map.
17
18// Looks up the closed function from the open function using the function map, following dynamic
19// library thunk redirections.
20AUTORTFM_DISABLE void* FunctionMapLookupExhaustive(void* OpenFn, const char* Where);
21
22template<typename ReturnType, typename... ParameterTypes>
23AUTORTFM_DISABLE auto FunctionMapLookupExhaustive(ReturnType (*Function)(ParameterTypes...), const char* Where) -> ReturnType (*)(ParameterTypes...)
24{
25 return reinterpret_cast<ReturnType (*)(ParameterTypes...)>(FunctionMapLookupExhaustive(reinterpret_cast<void*>(Function), Where));
26}
27
28} // namespace AutoRTFM
29
30#endif // (defined(__AUTORTFM) && __AUTORTFM)
#define AUTORTFM_DISABLE
Definition AutoRTFMDefines.h:116
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Interface OpenFn(DecoderMem, 48000, 1, false, false)
Definition API.cpp:57
Definition AutoRTFM.h:321