# VS2012

This topic is 569 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hey this compiles:

#if 0 lalala

#endif


But causes a problem in XCode. I got into the VS mindset and didn't notice before. I didn't even notice the back/forward buttons until I found them in CodeBlocks, only to find they were broken in VS.

##### Share on other sites

VS probably determines that since the condition is zero, therefore false, it does not output "lalala" and thus the block produces an empty string.

Edited by Nik02

##### Share on other sites

Probably just a scheme by MS to pass off an invisible newline character and sow discord.

##### Share on other sites

Another thing I noticed:

const char* AXNAME[HYP_DIMS] =
{
"x",
"y",
//"/",
//"tc",
"z",	//<-- valid in vc9
//"/",
//"/",
//"Vd",
//"t"
};

Is valid in vc9, but complains in gcc. I think that's how I noticed it, I don't remember, or maybe I ported it to linux and remembered that it should be wrong.

##### Share on other sites

This also compiles on MSVC2012 on Windows XP:

	ovaldown |= ( (((HASHINT)case10)<<backbin) ,1);
//ovaldown &= HASHCROP( ~HASHROTR( (((HASHINT)case8)<<bin) ,1) );
ovaldown &= HASHCROP( ~( (((HASHINT)case8)<<backbin) ,1) );

But not on Mac XCode.

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

(You must login to your GameDev.net account.)

• 13
• 9
• 15
• 14
• 46
• ### Forum Statistics

• Total Topics
634058
• Total Posts
3015288
×