Article ID: 199057
Article Last Modified on 1/11/2006
// TEST.CPP - Compile with /GX and /Zi or /ZI.
#include <iostream>
using namespace std;
#define CONCAT(s1,s2) #s1 ## #s2
#define MSG(n) cout << CONCAT(Message at line\x20,n) << endl;
int main()
{
MSG(__LINE__);
return 0;
}
When compiled with the /Zi option, output is correct:Message at line 12
Message at line (__LINE__Var+1)
Keywords: kbhowto kbbug kbpending kbcompiler KB199057