libtropic
C library for TROPIC01 chip
libtropic_logging.h File Reference

Macros for logging. More...

#include <assert.h>
#include <stdio.h>
Include dependency graph for libtropic_logging.h:

Macros

#define LT_LOG(f_, ...)   LT_LOG_INFO(f_, ##__VA_ARGS__)
 
#define LT_LOG_RESULT(f_, ...)   LT_LOG_INFO(" result: " f_, ##__VA_ARGS__)
 
#define LT_LOG_VALUE(f_, ...)   LT_LOG_INFO("\t\t- " f_, ##__VA_ARGS__)
 
#define LT_LOG_LINE(f_, ...)
 
#define LT_LOG_INFO(f_, ...)   printf("INFO [%4d] " f_ "\r\n", __LINE__, ##__VA_ARGS__)
 
#define LT_LOG_WARN(f_, ...)   printf("WARNING [%4d] " f_ "\r\n", __LINE__, ##__VA_ARGS__)
 
#define LT_LOG_ERROR(f_, ...)   printf("ERROR [%4d] " f_ "\r\n", __LINE__, ##__VA_ARGS__)
 
#define LT_LOG_DEBUG(f_, ...)
 
#define LT_ASSERT(expected, value)
 
#define LT_ASSERT_COND(value, condition, expected_if_true, expected_if_false)
 

Detailed Description

Author
Tropic Square s.r.o.
License
For the license see file LICENSE.txt file in the root directory of this source tree.