gogoWebsite

# and ## in #define

Updated to 13 hours ago
# and ## in #define
#define GPEBLT_FUNCNAME(basename) (SCODE (GPE:?)(struct GPEBltParms *))&GPE::##basename
In #define, the standard only defines two operations # and ##. # is used to convert parameters into strings, and ## is used to concatenate two first and last two parameters and turn them into a string.
#include <>
#define paster( n ) printf( “token " #n” = %d\n ", token##n )
int main()
{
int token9=10;
paster(9);
return 0;
}
The output is
[leshy@leshy src]$ ./
token 9 = 10