# HG changeset patch # User Akos Ladanyi # Date 2008-09-21 15:46:01 # Node ID 112ed801139d58d4703367360350a065166c8c33 # Parent 983d8c23aff82750de15e5d76dd699b8e5b19593 Use __func__ only if the compiler supports it (ticket #148). diff --git a/lemon/assert.h b/lemon/assert.h --- a/lemon/assert.h +++ b/lemon/assert.h @@ -107,8 +107,10 @@ # define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__) # elif defined _MSC_VER # define LEMON_FUNCTION_NAME (__FUNCSIG__) +# elif __STDC_VERSION__ >= 199901L +# define LEMON_FUNCTION_NAME (__func__) # else -# define LEMON_FUNCTION_NAME (__func__) +# define LEMON_FUNCTION_NAME ("") # endif #endif