The problem with that is that it breaks programs using placement new. So you'd need a pair of macros, and one of them would have to be a C99 variadic macro:
Mind you, I neither know how vararg macros really work, nor if you can overload a macro name on a function-style and an object-style macro. I think you can't.Code:#define new(...) new(_Varargs) #define new new(FileLine(__FILE__, __LINE__))