Skip to content

Commit

Permalink
remove unused logging macros
Browse files Browse the repository at this point in the history
  • Loading branch information
gardner48 committed Oct 15, 2024
1 parent a23deb6 commit 7427b15
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions src/sundials/sundials_logger_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,42 +50,6 @@
comma when no additional arguments are needed.
*/

#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_ERROR
#define SUNLogError(logger, label, /* msg_txt, */...) \
SUNLogger_QueueMsg(logger, SUN_LOGLEVEL_ERROR, __func__, label, \
/* msg_txt, */ __VA_ARGS__)
#define SUNLogErrorIf(condition, logger, label, /* msg_txt, */...) \
do { \
if ((condition)) \
{ \
SUNLogger_QueueMsg(logger, SUN_LOGLEVEL_ERROR, __func__, label, \
/* msg_txt, */ __VA_ARGS__); \
} \
} \
while (0)
#else
#define SUNLogError(logger, label, /* msg_txt, */...)
#define SUNLogErrorIf(condition, logger, label, /* msg_txt, */...)
#endif

#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_WARNING
#define SUNLogWarning(logger, label, /* msg_txt, */...) \
SUNLogger_QueueMsg(logger, SUN_LOGLEVEL_WARNING, __func__, label, \
/* msg_txt, */ __VA_ARGS__)
#define SUNLogWarningIf(condition, logger, label, /* msg_txt, */...) \
do { \
if ((condition)) \
{ \
SUNLogger_QueueMsg(logger, SUN_LOGLEVEL_WARNING, __func__, label, \
/* msg_txt, */ __VA_ARGS__); \
} \
} \
while (0)
#else
#define SUNLogWarning(logger, label, /* msg_txt, */...)
#define SUNLogWarningIf(condition, logger, label, /* msg_txt, */...)
#endif

#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_INFO
#define SUNLogInfo(logger, label, /* msg_txt, */...) \
SUNLogger_QueueMsg(logger, SUN_LOGLEVEL_INFO, __func__, label, \
Expand Down

0 comments on commit 7427b15

Please sign in to comment.