lemon/assert.h
changeset 271 cea3cb3bbcd7
parent 218 0d6511647639
child 277 7abfb55f1ecc
     1.1 --- a/lemon/assert.h	Sun Sep 21 18:25:56 2008 +0100
     1.2 +++ b/lemon/assert.h	Sun Sep 21 18:26:25 2008 +0100
     1.3 @@ -107,8 +107,10 @@
     1.4  #    define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__)
     1.5  #  elif defined _MSC_VER
     1.6  #    define LEMON_FUNCTION_NAME (__FUNCSIG__)
     1.7 +#  elif __STDC_VERSION__ >= 199901L
     1.8 +#    define LEMON_FUNCTION_NAME (__func__)
     1.9  #  else
    1.10 -#    define LEMON_FUNCTION_NAME (__func__)
    1.11 +#    define LEMON_FUNCTION_NAME ("<unknown>")
    1.12  #  endif
    1.13  #endif
    1.14