lemon/assert.h
changeset 145 95d905b6e33d
parent 118 407c08a0eae9
child 209 765619b7cbb2
     1.1 --- a/lemon/assert.h	Tue Apr 22 15:07:04 2008 +0200
     1.2 +++ b/lemon/assert.h	Tue Apr 22 17:52:01 2008 +0100
     1.3 @@ -103,7 +103,13 @@
     1.4  #endif
     1.5  
     1.6  #ifndef LEMON_FUNCTION_NAME
     1.7 -#  define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__)
     1.8 +#  if defined __GNUC__
     1.9 +#    define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__)
    1.10 +#  elif defined _MSC_VER
    1.11 +#    define LEMON_FUNCTION_NAME (__FUNCSIG__)
    1.12 +#  else
    1.13 +#    define LEMON_FUNCTION_NAME (__func__)
    1.14 +#  endif
    1.15  #endif
    1.16  
    1.17  #ifdef DOXYGEN