This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

__ESCAPE__ MACRO?

#define INTMAX_C(x) __ESCAPE__(x ## ll)

This Macro was copied from the ARM\RV\INC\stdint.h header file.
My question is the function of __ESCAPE__. It appears to be a predefined macro to implement an escape sequence. I have be unable to find the macro or any info. Is this a standard C macro? Did I miss something in my C classes a 100 years ago?
I have no problem. I would just like to know what I don't know.
Bradford

Parents
  • No, it isn't a standard macro. And it isn't a keyword. Keywords are normally written like:

    __cdecl
    __asm
    __asm__
    ...
    

    Symbols written __ESCAPE__ are normally defines. The dual underscores are used by compilers and some OS include files, to make sure that the defines doesn't clashes with user-defined symbols. Since __ESCAPE__ isn't a standard define, you might find it in include files supplied with one compiler, while not finding any reference to it in include files supplied with another compiler.

Reply
  • No, it isn't a standard macro. And it isn't a keyword. Keywords are normally written like:

    __cdecl
    __asm
    __asm__
    ...
    

    Symbols written __ESCAPE__ are normally defines. The dual underscores are used by compilers and some OS include files, to make sure that the defines doesn't clashes with user-defined symbols. Since __ESCAPE__ isn't a standard define, you might find it in include files supplied with one compiler, while not finding any reference to it in include files supplied with another compiler.

Children
No data