1#ifndef _TEST_CCAPI_LOG_H_ 2#define _TEST_CCAPI_LOG_H_ 3 4#include <stdio.h> 5#include <stdarg.h> 6#include "test_ccapi_globals.h" 7 8#define log_error(format, ...) \ 9 _log_error(__FILE__, __LINE__, format , ## __VA_ARGS__) 10 11void _log_error_v(const char *file, int line, const char *format, va_list ap); 12void _log_error(const char *file, int line, const char *format, ...) 13#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) 14__attribute__ ((__format__ (__printf__, 3, 4))) 15#endif 16; 17void test_header(const char *msg); 18void test_footer(const char *msg, int err); 19 20#endif /* _TEST_CCAPI_LOG_H_ */ 21