VS2012

Started by
4 comments, last by polyfrag 6 years, 10 months ago

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.

Advertisement

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

Niko Suni

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

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.

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.

This topic is closed to new replies.

Advertisement