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 ↑
Show white space 24 line context
... ...
@@ -98,26 +98,28 @@
98 98
#  undef LEMON_ASSERT_HANDLER
99 99
#elif defined NDEBUG
100 100
#  undef LEMON_ASSERT_HANDLER
101 101
#else
102 102
#  define LEMON_ASSERT_HANDLER ::lemon::assert_fail_abort
103 103
#endif
104 104

	
105 105
#ifndef LEMON_FUNCTION_NAME
106 106
#  if defined __GNUC__
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

	
115 117
#ifdef DOXYGEN
116 118

	
117 119
/// \ingroup exceptions
118 120
///
119 121
/// \brief Macro for assertion with customizable message
120 122
///
121 123
/// Macro for assertion with customizable message.  \param exp An
122 124
/// expression that must be convertible to \c bool.  If it is \c
123 125
/// false, then an assertion is raised. The concrete behaviour depends
0 comments (0 inline)