// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #if (defined(__AUTORTFM) && __AUTORTFM) #include "AutoRTFM.h" namespace AutoRTFM { // Dumps statistics about the function map to LOG_INFO. void FunctionMapDumpStats(); // Adds all the open to closed function mappings from the linked list of tables to the function map. void FunctionMapAdd(autortfm_open_to_closed_table* Tables); // Looks up the closed function from the open function using the function map, following dynamic // library thunk redirections. void* FunctionMapLookupExhaustive(void* OpenFn, const char* Where); template auto FunctionMapLookupExhaustive(ReturnType (*Function)(ParameterTypes...), const char* Where) -> ReturnType (*)(ParameterTypes...) { return reinterpret_cast(FunctionMapLookupExhaustive(reinterpret_cast(Function), Where)); } } // namespace AutoRTFM #endif // (defined(__AUTORTFM) && __AUTORTFM)