gravatar
ladanyi@tmit.bme.hu
ladanyi@tmit.bme.hu
Use __func__ only if the compiler supports it (ticket #148).
0 1 0
default
1 file changed with 3 insertions and 1 deletions:
↑ Collapse diff ↑
Ignore white space 6 line context
... ...
@@ -107,8 +107,10 @@
107 107
#    define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__)
108 108
#  elif defined _MSC_VER
109 109
#    define LEMON_FUNCTION_NAME (__FUNCSIG__)
110
#  elif __STDC_VERSION__ >= 199901L
111
#    define LEMON_FUNCTION_NAME (__func__)
110 112
#  else
111
#    define LEMON_FUNCTION_NAME (__func__)
113
#    define LEMON_FUNCTION_NAME ("<unknown>")
112 114
#  endif
113 115
#endif
114 116

	
0 comments (0 inline)