• Advertisement
Sign in to follow this  

VS2012

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 this post


Link to post
Share on other sites
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.

Edited by Nik02

Share this post


Link to post
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 this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Advertisement