LOGIF_MAYBE macros cleaned away.

Used in few places and only obscured what was going on.
This commit is contained in:
Johan Wikman
2015-11-13 14:26:43 +02:00
parent 8d0bd8150a
commit 86dcd1cc0f
3 changed files with 47 additions and 43 deletions

View File

@ -83,14 +83,6 @@ typedef struct log_info
#define LOG_MAY_BE_ENABLED(id) (((lm_enabled_logfiles_bitmask & id) || \
log_ses_count[id] > 0) ? true : false)
/**
* Execute the given command if specified log is enabled in general or
* if there is at least one session for whom the log is enabled.
*/
#define LOGIF_MAYBE(id,cmd) if (LOG_MAY_BE_ENABLED(id)) \
{ \
cmd; \
}
/**
* Execute the given command if specified log is enabled in general or
@ -101,13 +93,6 @@ typedef struct log_info
cmd; \
}
#if !defined(LOGIF)
#define LOGIF(id,cmd) if (lm_enabled_logfiles_bitmask & id) \
{ \
cmd; \
}
#endif
/**
* UNINIT means zeroed memory buffer allocated for the struct.
* INIT means that struct members may have values, and memory may