Hacker News new | ask | show | jobs
by linkdd 1263 days ago
imgui distribute .c/.h files, not .h files with .c embedded in them.

What I'm criticizing is the extra step of me having to write the .c files anyway to avoid bloating the obj files, which should have been done by the library in the first place.

1 comments

As others have pointed out, you don't need to write extra .c files, and you won't bloat the obj files. This paradigm is fairly common, see, e.g.:

https://github.com/lieff/minimp3

https://github.com/Immediate-Mode-UI/Nuklear

https://github.com/mattiasgustavsson/libs/blob/main/docs/htt...