Definitions in adas_log.h

Updated: May 06, 2022

Preprocessor macro definitions for the adas_log.h header file in the libadas library

Definitions:

#include <adas/adas_log.h>
#define ADAS_PRINT adas_log_print(stdout, "%.15s %.3d: " format, strrchr(__FILE__, '/') ? \
                   strrchr(__FILE__, '/') + 1 : __FILE__, __LINE__, ##__VA_ARGS__)

Add a debug entry in the ADAS library logs.

The macro works similar to a printf() where a format string is provided and variable-length arguments provide the values to set in the format string.

#define ADAS_ERROR adas_log_print(stderr, "%.15s %.3d: " format, strrchr(__FILE__, '/') ? \
                   strrchr(__FILE__, '/') + 1 : __FILE__, __LINE__, ##__VA_ARGS__)

Add an error entry in the ADAS library logs.

The macro works similar to a printf() where a format string is provided and variable-length arguments provide the values to set in the format string.

Library:

libadas