aboutsummaryrefslogtreecommitdiff
path: root/src/ccapi/test/test_ccapi_log.h
blob: 5c3cce010769539bdedb73de611396d97fcf3ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _TEST_CCAPI_LOG_H_
#define _TEST_CCAPI_LOG_H_

#include <stdio.h>
#include <stdarg.h>
#include "test_ccapi_globals.h"

#define log_error(format, ...) \
		_log_error(__FILE__, __LINE__, format , ## __VA_ARGS__)

void _log_error_v(const char *file, int line, const char *format, va_list ap);
// void _log_error(const char *file, int line, const char *format, ...) __attribute__ ((format (printf, 3, 4)));
void _log_error(const char *file, int line, const char *format, ...);

void test_header(const char *msg);
void test_footer(const char *msg, int err);

#endif /* _TEST_CCAPI_LOG_H_ */