lemon/assert.h
changeset 271 cea3cb3bbcd7
parent 218 0d6511647639
child 277 7abfb55f1ecc
equal deleted inserted replaced
7:170b518d60f4 8:74b27bba5c3e
   105 #ifndef LEMON_FUNCTION_NAME
   105 #ifndef LEMON_FUNCTION_NAME
   106 #  if defined __GNUC__
   106 #  if defined __GNUC__
   107 #    define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__)
   107 #    define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__)
   108 #  elif defined _MSC_VER
   108 #  elif defined _MSC_VER
   109 #    define LEMON_FUNCTION_NAME (__FUNCSIG__)
   109 #    define LEMON_FUNCTION_NAME (__FUNCSIG__)
       
   110 #  elif __STDC_VERSION__ >= 199901L
       
   111 #    define LEMON_FUNCTION_NAME (__func__)
   110 #  else
   112 #  else
   111 #    define LEMON_FUNCTION_NAME (__func__)
   113 #    define LEMON_FUNCTION_NAME ("<unknown>")
   112 #  endif
   114 #  endif
   113 #endif
   115 #endif
   114 
   116 
   115 #ifdef DOXYGEN
   117 #ifdef DOXYGEN
   116 
   118