Sign in to follow this  
BrickInTheWall

@ - Symbol in C/C++?

Recommended Posts

Hi, Quick and probably stupid question here. I've seen a few code examples with the "@" symbol when defining constants and can't find anywhere what they mean...for example: #define SOMETHING @0x00 Whats it all about? Cheers!

Share this post


Link to post
Share on other sites
Inside a macro (a.k.a. #define), the @ symbol means that the thing that follows is a character.

If you have a copy of the language standards handy, search for @\n for an example usage.


So @0x00 would mean to use the character value 0, with no other parsing or replacement.

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