In order to add \'todo\' items into my code, I want to put a message in the compiler output. I would like it to look like this:
c:/temp/main.cpp(104): TODO -
On Visual C++ you can just do
#pragma message(__FILE__ "(" _CRT_STRINGIZE(__LINE__) ")" ": warning: [blah]")
_CRT_STRINGIZE is often already defined in some header, but if it's not, you can define it:
_CRT_STRINGIZE
#define _CRT_STRINGIZE_(x) #x #define _CRT_STRINGIZE(x) _CRT_STRINGIZE_(x)