diff options
Diffstat (limited to 'src/include/mhd_options.h')
-rw-r--r-- | src/include/mhd_options.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/mhd_options.h b/src/include/mhd_options.h index 5a5b7fee..821407a9 100644 --- a/src/include/mhd_options.h +++ b/src/include/mhd_options.h | |||
@@ -172,4 +172,19 @@ | |||
172 | #endif /* ! (MHD_ASAN_ACTIVE && HAVE_SANITIZER_ASAN_INTERFACE_H && | 172 | #endif /* ! (MHD_ASAN_ACTIVE && HAVE_SANITIZER_ASAN_INTERFACE_H && |
173 | (FUNC_ATTR_PTRCOMPARE_WORKS || FUNC_ATTR_NOSANITIZE_WORKS)) */ | 173 | (FUNC_ATTR_PTRCOMPARE_WORKS || FUNC_ATTR_NOSANITIZE_WORKS)) */ |
174 | 174 | ||
175 | |||
176 | /** | ||
177 | * Automatic string with the name of the current function | ||
178 | */ | ||
179 | #if defined(HAVE___FUNC__) | ||
180 | #define MHD_FUNC_ __func__ | ||
181 | #elif defined(HAVE___FUNCTION__) | ||
182 | #define MHD_FUNC_ __FUNCTION__ | ||
183 | #elif defined(HAVE___PRETTY_FUNCTION__) | ||
184 | #define MHD_FUNC_ __PRETTY_FUNCTION__ | ||
185 | #else | ||
186 | #define MHD_FUNC_ "**name unavailable**" | ||
187 | #endif | ||
188 | |||
189 | |||
175 | #endif /* MHD_OPTIONS_H */ | 190 | #endif /* MHD_OPTIONS_H */ |