ebitengine / purego

Apache License 2.0
1.95k stars 63 forks source link

Expose `Dlopen` / `Dlsym` / `Dlclose` on Windows #192

Closed RomainMuller closed 6 months ago

RomainMuller commented 6 months ago

Make the API consistent across platforms, so that consumers can use purego wihtout having to bother with Windows-specific shenanigans. Simply wrap windows.LoadLibrary, windows.GetProcAddress and windows.FreeLibrary and cast the returned values to purego Api types.

This makes it tremendously easier ot consume purego in apps that target both Windows and *NIXes.

TotallyGamerJet commented 6 months ago

This was already discussed in #107 and rejected. I don't think there is any new information that would change the decision. Agreed? @hajimehoshi

hajimehoshi commented 6 months ago

I'm still against adding them for Windows.