# HG changeset patch
# User Akos Ladanyi <ladanyi@tmit.bme.hu>
# Date 1222004761 -3600
# 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
|
b
|
|
107 | 107 | # define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__) |
108 | 108 | # elif defined _MSC_VER |
109 | 109 | # define LEMON_FUNCTION_NAME (__FUNCSIG__) |
| 110 | # elif __STDC_VERSION__ >= 199901L |
| 111 | # define LEMON_FUNCTION_NAME (__func__) |
110 | 112 | # else |
111 | | # define LEMON_FUNCTION_NAME (__func__) |
| 113 | # define LEMON_FUNCTION_NAME ("<unknown>") |
112 | 114 | # endif |
113 | 115 | #endif |
114 | 116 | |