Define glibtop_debug(_r) as macros, eventually calling real C function.

Keep these as macros so that if debug is not enable, although the
debug message is parsed, it's not run.
It's better this way because the debug message is always parsed and
checked instead of being deleted by the preprocessor.
This commit is contained in:
Benoit Dejean
2015-06-21 22:35:52 +02:00
parent b2a2f6b5c2
commit 887092a05d
2 changed files with 6 additions and 4 deletions

View File

@@ -174,7 +174,7 @@ glibtop_debug_vr (glibtop *server, const char *format, va_list args)
}
void
glibtop_debug_r (glibtop *server, const char *format, ...)
glibtop_debug_r_real (glibtop *server, const char *format, ...)
{
va_list args;