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

Yes having platform specific code in its own header source and just #ifdef the includes provides much cleaner and nicer code


Don't even do that -- have one header that all the platform interfaces implement without ifdefs.

Keep the conditional compilation in the makefiles, not in the source.




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

Search: