| ||||||
| 5/18 |
| 2003/12/12-13 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Compilers] UID:11427 Activity:nil |
12/11 Is there something like __FILE__ or __LINE__ macro that will give me
the class / method name in C++?
\_ it can't be a macro, because the preprocessor doesn't know anything
about classes or functions.
\_ __FUNCTION__, __PRETTY_FUNCTION__ in gcc, __func__ in C99
\_ gcc 2.95.4 on soda accepts __func__ too. |
| 5/18 |
|