Re:Single_file_libs: List of single-file C/C++ libraries
by thisiswas on Monday October 26, 2020 @08:17AM
(#24895291)
stb actually went to extreme lengths on his SDL/GLFW-like library where he didn't even depend on windows.h, i.e he put just the structs and function(pointers) he needed into the header (under stbxxx_ prefixes), hardcoded magic numbers instead of windows.h's #defines, bootstrapped with __declspec(dllimport) GetProcAddress (and even that symbol can be omitted with some trickery, there is a way to get to kernel32.dll functions from any .exe)
[ Parent
| on HN ]
There are no comments on this comment yet.