MCPcopy Create free account
hub / github.com/StudioCherno/Coral / LoadFunctionPtr

Function LoadFunctionPtr

Coral.Native/Source/Coral/HostInstance.cpp:129–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127#ifdef CORAL_WINDOWS
128 template <typename TFunc>
129 TFunc LoadFunctionPtr(void* InLibraryHandle, const char* InFunctionName)
130 {
131 auto result = (TFunc)GetProcAddress((HMODULE)InLibraryHandle, InFunctionName);
132 CORAL_VERIFY(result);
133 return result;
134 }
135#else
136 template <typename TFunc>
137 TFunc LoadFunctionPtr(void* InLibraryHandle, const char* InFunctionName)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected