Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> macros are an ugly solution, but they are a solution

Tangential, but a decent example of that sort of thing, a generic red-black tree written entirely in the C preprocessor: http://www.canonware.com/download/rb/rb_newer/rb.h






Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: