Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
LefterisJP
on Feb 18, 2012
|
parent
|
context
|
favorite
| on:
Preprocessor magic: Default Arguments in C
Yes having platform specific code in its own header source and just #ifdef the includes provides much cleaner and nicer code
ori_b
on Feb 18, 2012
[–]
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: