Skip to main content
GameDev.net gamedev.net
🔒 Locked

VS2012

Started by polyfrag May 23, 2016 at 1:48 PM 4 replies 5.3k views
Original Post
polyfrag
polyfrag

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.

Nik02
Nik02

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
polyfrag
polyfrag

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

polyfrag
polyfrag

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.

polyfrag
polyfrag

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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.