maedoc / libtvb

TVB C library
6 stars 8 forks source link

Add func info to msg when compiler supports it #73

Open maedoc opened 8 years ago

maedoc commented 8 years ago

Cf https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html#Standard-Predefined-Macros

__func__ in C99 (incl. MSVC) and __FUNCTION__ in GNU are replaced by current function names and can be included in ddbugging and log messages if compiler supports it.

https://msdn.microsoft.com/en-us/library/b0084kay.aspx