6 ms·
I'm currently using https://github.com/attractivechaos/klib/blob/master/khash.h https://github.com/attractivechaos/klib/blob/master/khash.h in professional proj
by aninteger 11y ago
I'm currently using https://github.com/attractivechaos/klib/blob/master/khash.h https://github.com/attractivechaos/klib/blob/master/khash.h in professional projects. I know it's pretty much full of macro "magic" (well it's readable so not really..) so that makes some people scared. I really like these header file "libraries" and am also a big fan of BSD's sys/queue.h
- watmough 11y agoYeah thanks, I'm on OS X, and stuff like timersub is coded in sys/time.h I'll check out sys/queue.h
- watmough 11y agoThanks a bunch for that, khash looks really interesting, and it does what I kinda wanted to do, but didn't really realize was possible. Suddenly, the C preprocessor doesn't seem quite as far distant from C++ templates as I'd thought...