vive device header
More...
Go to the source code of this file.
|
#define | VIVE_SPEW(p, ...) |
|
#define | VIVE_DEBUG(p, ...) |
|
#define | VIVE_ERROR(...) |
|
|
enum | VIVE_VARIANT { VIVE_UNKNOWN = 0,
VIVE_VARIANT_VIVE,
VIVE_VARIANT_PRO,
VIVE_VARIANT_INDEX
} |
|
◆ VIVE_DEBUG
#define VIVE_DEBUG |
( |
|
p, |
|
|
|
... |
|
) |
| |
Value:do { \
if (p->print_debug) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)
◆ VIVE_ERROR
#define VIVE_ERROR |
( |
|
... | ) |
|
Value:do { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} while (false)
◆ VIVE_SPEW
#define VIVE_SPEW |
( |
|
p, |
|
|
|
... |
|
) |
| |
Value:do { \
if (p->print_spew) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)