Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Olivier Crête
libnice
Commits
ac4d1b7f
Commit
ac4d1b7f
authored
Jan 31, 2014
by
Philip Withnall
Committed by
Olivier Crête
Feb 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Fix inlining of nice_debug() if NDEBUG is defined
parent
816bf91a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
agent/agent-priv.h
agent/agent-priv.h
+2
-2
agent/debug.c
agent/debug.c
+8
-0
No files found.
agent/agent-priv.h
View file @
ac4d1b7f
...
...
@@ -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
);
...
...
agent/debug.c
View file @
ac4d1b7f
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment