23 #include "precompiled.h"
36 return (
void*)hModule;
52 switch(GetLastError())
54 case ERROR_MOD_NOT_FOUND:
55 return "module not found";
56 case ERROR_PROC_NOT_FOUND:
57 return "symbol not found";
64 void*
dlopen(
const char* so_name,
int flags)
69 HMODULE hModule = LoadLibraryW(
OsString(pathname).c_str());
77 void* sym = GetProcAddress(hModule, sym_name);
static void * void_from_HMODULE(HMODULE hModule)
#define ENSURE(expr)
ensure the expression <expr> evaluates to non-zero.
void * dlopen(const char *so_name, int flags)
int dlclose(void *handle)
void * dlsym(void *handle, const char *sym_name)
static HMODULE HMODULE_from_void(void *handle)
Path ChangeExtension(Path extension) const
#define WARN_IF_FALSE(expression)
static Handle handle(size_t idx, u64 tag)
static std::string OsString(const OsPath &path)