No. Macros are expanded at the source line where they occur.
Anthony Williams
2010-08-11 21:02:39
No. Macros are expanded at the source line where they occur.
You probably can... but definitely not with the restriction you mentioned (no macros).
You can't, but you can acheive this behavior with an additional macro. For instance:
#DEFINE THROW(e) throwException(e, __FILE__, __LINE__);
On a side note, __PRETTY_FUNCTION__
is not standard.