News for hackers. Stuff that matters.
Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by cwyers on Sunday June 28, 2015 @03:46PM (#9794787)
> 2. No OS #ifdefs >Um;... so... like... what else to use instead?...

You misread. The problem was that it was written in the form of if Windows do this, else do something that only works on OS X. The alternative is an explicit if for OS X, so that when you have a third OS to support you don't have to add that.

Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by akavel on Sunday June 28, 2015 @07:08PM (#9795496)
Hm, still not quite sure how that'd help; one still has to edit all that places, no? and in case one had "#else nothing", I don't see how that's more useful in any way. And the suggested "do something sensible by default" - if one could, one wouldn't have the ifdefs at all I suppose.
Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by Mathiasdm on Monday June 29, 2015 @03:08AM (#9796767)
One possibility would be to have

#else #error #endif

If you work this way, you immediately know where to change your code.