How can I concatenate twice with the C preprocessor and expand a macro as in “arg ## _ ## MACRO”?

Standard C Preprocessor $ cat xx.c #define VARIABLE 3 #define PASTER(x,y) x ## _ ## y #define EVALUATOR(x,y) PASTER(x,y) #define NAME(fun) EVALUATOR(fun, VARIABLE) extern void NAME(mine)(char *x); $ gcc -E xx.c # 1 “xx.c” # 1 “<built-in>” # 1 “<command-line>” # 1 “xx.c” extern void mine_3(char *x); $ Two levels of indirection In a comment … Read more

Concatenating null strings in Java [duplicate]

Why must it work? The JLS 5, Section 15.18.1.1 JLS 8 § 15.18.1 “String Concatenation Operator +”, leading to JLS 8, § 5.1.11 “String Conversion”, requires this operation to succeed without failure: …Now only reference values need to be considered. If the reference is null, it is converted to the string “null” (four ASCII characters … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)