Libtropic API
SDK for the TROPIC01 secure element
Version: master (latest)
Loading...
Searching...
No Matches
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_DISABLED(...)
 Dummy macro used when no logging is configured.
 
#define LT_LOG_INFO(f_, ...)   LT_LOG_DISABLED(f_, ##__VA_ARGS__)
 
#define LT_LOG_WARN(f_, ...)   LT_LOG_DISABLED(f_, ##__VA_ARGS__)
 
#define LT_LOG_ERROR(f_, ...)   LT_LOG_DISABLED(f_, ##__VA_ARGS__)
 
#define LT_LOG_DEBUG(f_, ...)   LT_LOG_DISABLED(f_, ##__VA_ARGS__)
 
#define LT_ASSERT(expected, value)
 
#define LT_ASSERT_COND(value, condition, expected_if_true, expected_if_false)
 

Detailed Description

License
For the license see file LICENSE.txt file in the root directory of this source tree.