MCPcopy Create free account
hub / github.com/RenderKit/embree / find_symbol

Function find_symbol

kernels/level_zero/ze_wrapper.cpp:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49template<typename T>
50T find_symbol(void* handle, std::string const& symbol) {
51#if defined(__LINUX__)
52 T result = (T) dlsym(handle, symbol.c_str());
53#else
54 T result = (T) GetProcAddress((HMODULE)handle, symbol.c_str());
55#endif
56 if (!result) {
57 throw std::runtime_error("level_zero wrapper: symbol " + symbol + " not found");
58 }
59 return result;
60}
61
62void* load_module() {
63#if defined(__LINUX__)

Callers

nothing calls this directly

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected