am 775dabd4: am 9dfaa63a: Merge "Allow linker to compile with -DLINKER_DEBUG=1"
* commit '775dabd4d7f1c08d4229a3578d15990e86dd9c92': Allow linker to compile with -DLINKER_DEBUG=1
This commit is contained in:
commit
48c8880429
@ -61,6 +61,11 @@
|
|||||||
*/
|
*/
|
||||||
#if LINKER_DEBUG
|
#if LINKER_DEBUG
|
||||||
#include "linker_format.h"
|
#include "linker_format.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
extern int debug_verbosity;
|
extern int debug_verbosity;
|
||||||
#if LINKER_DEBUG_TO_LOG
|
#if LINKER_DEBUG_TO_LOG
|
||||||
extern int format_log(int, const char *, const char *, ...);
|
extern int format_log(int, const char *, const char *, ...);
|
||||||
@ -75,6 +80,11 @@ extern int format_fd(int, const char *, ...);
|
|||||||
if (debug_verbosity > (v)) format_fd(1, x); \
|
if (debug_verbosity > (v)) format_fd(1, x); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif /* !LINKER_DEBUG_TO_LOG */
|
#endif /* !LINKER_DEBUG_TO_LOG */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#else /* !LINKER_DEBUG */
|
#else /* !LINKER_DEBUG */
|
||||||
#define _PRINTVF(v,f,x...) do {} while(0)
|
#define _PRINTVF(v,f,x...) do {} while(0)
|
||||||
#endif /* LINKER_DEBUG */
|
#endif /* LINKER_DEBUG */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user