ouster_clib
v1.0
C library for Ouster LiDAR
Loading...
Searching...
No Matches
ouster_log.h
1
9
#ifndef OUSTER_LOG_H
10
#define OUSTER_LOG_H
11
12
#include <stdint.h>
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
19
int32_t ouster_log_set_level(int32_t level);
20
22
#ifdef OUSTER_ENABLE_LOG
23
void
ouster_log_(int32_t level,
char
const
* file, int32_t line,
char
const
*fmt, ...);
24
void
ouster_log_m4_(
double
const
a[16]);
25
void
ouster_log_m3_(
double
const
a[9]);
26
void
ouster_log_v3_(
double
const
a[3]);
27
#define ouster_log(...) ouster_log_(0, __FILE__, __LINE__, __VA_ARGS__)
28
#define ouster_log_m4(...) ouster_log_m4_(__VA_ARGS__)
29
#define ouster_log_m3(...) ouster_log_m3_(__VA_ARGS__)
30
#define ouster_log_v3(...) ouster_log_v3_(__VA_ARGS__)
31
#else
32
#define ouster_log(...)
33
#define ouster_log_m4(...)
34
#define ouster_log_m3(...)
35
#define ouster_log_v3(...)
36
#endif
37
38
39
40
41
42
#ifdef __cplusplus
43
}
44
#endif
45
46
#endif
// OUSTER_LOG_H
47