lemon/assert.h
changeset 176 47b69d4b0759
parent 118 407c08a0eae9
child 209 765619b7cbb2
equal deleted inserted replaced
2:09d135cc2e1a 3:3f0e1f9ec054
   101 #else
   101 #else
   102 #  define LEMON_ASSERT_HANDLER ::lemon::assert_fail_abort
   102 #  define LEMON_ASSERT_HANDLER ::lemon::assert_fail_abort
   103 #endif
   103 #endif
   104 
   104 
   105 #ifndef LEMON_FUNCTION_NAME
   105 #ifndef LEMON_FUNCTION_NAME
   106 #  define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__)
   106 #  if defined __GNUC__
       
   107 #    define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__)
       
   108 #  elif defined _MSC_VER
       
   109 #    define LEMON_FUNCTION_NAME (__FUNCSIG__)
       
   110 #  else
       
   111 #    define LEMON_FUNCTION_NAME (__func__)
       
   112 #  endif
   107 #endif
   113 #endif
   108 
   114 
   109 #ifdef DOXYGEN
   115 #ifdef DOXYGEN
   110 
   116 
   111 /// \ingroup exceptions
   117 /// \ingroup exceptions