libcobaro-trace0
1.0.0
Main Page
Files
File List
Globals
All
Files
Functions
Macros
Pages
trace.h
Go to the documentation of this file.
1
// -*- mode: c -*-
2
#ifndef COBARO_TRACE0_TRACE_H
3
#define COBARO_TRACE0_TRACE_H
4
5
/****************************************************************
6
COPYRIGHT_BEGIN
7
Copyright (C) 2015, cobaro.org
8
All rights reserved.
9
COPYRIGHT_END
10
****************************************************************/
11
13
32
44
45
#if defined (COBARO_TRACE_ENABLED)
46
# define COBARO_TRACE(level, format, ...) \
47
cobaro_trace(__FILE__, __LINE__, level, format, __VA_ARGS__)
48
#else
49
# define COBARO_TRACE(level, format, ...)
50
#endif
51
53
void
cobaro_trace
(
char
* file,
int
line,
int
level,
char
*format, ...)
54
#if defined(__GNUC__)
55
__attribute__((format (printf, 4, 5)))
56
#endif
57
;
58
60
char
*
cobaro_trace_version
(
void
);
61
62
#endif
/* COBARO_TRACE0_TRACE_H */
cobaro_trace
void cobaro_trace(char *file, int line, int level, char *format,...)
Underlying call, use only through the macro.
cobaro_trace_version
char * cobaro_trace_version(void)
Printable version number.
Generated on Sun May 31 2015 21:05:09 for libcobaro-trace0 by
1.8.8