mirror of
https://github.com/samba-team/samba.git
synced 2025-11-21 12:23:50 +03:00
r15000: Move some more autoconf tests out of build/m4/rewrite.m4
Guarantee availability of __FUNCTION__ in libreplace
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
a5c87360a7
commit
76b1576541
@@ -23,14 +23,6 @@
|
||||
* @brief Debugging macros
|
||||
*/
|
||||
|
||||
/* If we have these macros, we can add additional info to the header. */
|
||||
|
||||
#ifdef HAVE_FUNCTION_MACRO
|
||||
#define FUNCTION_MACRO (__FUNCTION__)
|
||||
#else
|
||||
#define FUNCTION_MACRO ("")
|
||||
#endif
|
||||
|
||||
/* the debug operations structure - contains function pointers to
|
||||
various debug implementations of each operation */
|
||||
struct debug_ops {
|
||||
@@ -54,7 +46,7 @@ extern int DEBUGLEVEL;
|
||||
#define _DEBUG(level, body, header) do { \
|
||||
if (DEBUGLVL(level)) { \
|
||||
if (header) { \
|
||||
do_debug_header(level, __location__, FUNCTION_MACRO); \
|
||||
do_debug_header(level, __location__, __FUNCTION__); \
|
||||
} \
|
||||
do_debug body; \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user