reactor-c 1.0
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
logging_macros.h File Reference

Logging macros for the logging API. More...

#include "logging.h"
#include <stdbool.h>

Go to the source code of this file.

Macros

#define LF_ASSERT(condition, format, ...)
 Assert that a condition is true.
#define LF_ASSERT_NON_NULL(pointer)
 Assert that a pointer is not NULL.
#define LF_ASSERTN(condition, format, ...)
 Assert that a condition is false.
#define LF_PRINT_DEBUG(format, ...)
 A macro used to print useful debug information.
#define LF_PRINT_LOG(format, ...)
 A macro used to print useful logging information.
#define LF_TEST(condition, format, ...)
 Check that a condition is true.
#define LOG_LEVEL   LOG_LEVEL_INFO
 Default log level.

Variables

static const bool _lf_log_level_is_debug = 2 >= 4
static const bool _lf_log_level_is_log = 2 >= 3

Detailed Description

Logging macros for the logging API.

Non-C implementations (which cannot benefit from the C preprocessor) should ignore this file, or merely use it as a suggestion for similar behavior that they should implement using whatever metaprogramming facilities their implementation provides in place of the preprocessor.

Macro Definition Documentation

◆ LOG_LEVEL

#define LOG_LEVEL   LOG_LEVEL_INFO

Default log level.

Variable Documentation

◆ _lf_log_level_is_debug

const bool _lf_log_level_is_debug = 2 >= 4
static

◆ _lf_log_level_is_log

const bool _lf_log_level_is_log = 2 >= 3
static