Commit ac4d1b7f authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête
Browse files

agent: Fix inlining of nice_debug() if NDEBUG is defined

parent 816bf91a
......@@ -236,8 +236,8 @@ void nice_debug_init (void);
#ifdef NDEBUG
static inline gboolean nice_debug_is_enabled (void) { return FALSE };
static inline void nice_debug (const char *fmt, ...) G_GNUC_PRINTF (1, 2) { }
static inline gboolean nice_debug_is_enabled (void) { return FALSE; }
static inline void nice_debug (const char *fmt, ...) { }
#else
gboolean nice_debug_is_enabled (void);
void nice_debug (const char *fmt, ...) G_GNUC_PRINTF (1, 2);
......
......@@ -93,10 +93,14 @@ void nice_debug_init (void)
}
}
#ifndef NDEBUG
gboolean nice_debug_is_enabled (void)
{
return debug_enabled;
}
#else
/* Defined in agent-priv.h. */
#endif
void nice_debug_enable (gboolean with_stun)
{
......@@ -113,6 +117,7 @@ void nice_debug_disable (gboolean with_stun)
stun_debug_disable ();
}
#ifndef NDEBUG
void nice_debug (const char *fmt, ...)
{
va_list ap;
......@@ -122,3 +127,6 @@ void nice_debug (const char *fmt, ...)
va_end (ap);
}
}
#else
/* Defined in agent-priv.h. */
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment