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

How well does that play with ifdef? The problem is rarely what does this macro expand to, but which macro is going to be expanded.


Well, I guess it depends on what your code looks like.

That being said if I'm not sure if some code is being compiled I just add an "#error foo" and rebuild. Or even simpler I just type in some garbage to trigger a compilation error.




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

Search: