Show HN: Jsong: faster than light streaming JSON parser and writer in C
github.com
github.com
For example, the way the feature detection is done with "#if HAVE(INT32)" or "#if C(MSC)".
I learned a trick with Debruijn sequences to count bits here: https://github.com/garnetius/QUANTUM/quantum/bitops.h
It could be useful for a bitmap memory allocator I'm working on.
I learned the trick that you mentioned from WebKit source: https://github.com/WebKit/webkit/blob/b387856b9e42476169271f...
It's slightly different there though. I don't think that boolean definition tests (as in `definied`) should be mixed with actual definition value: what if we want to check if `USE_STUFF` is defined, and zero is among possible definition values?