kaldi-native-fbank C++ API
Kaldi-compatible feature extraction C++ API
Loading...
Searching...
No Matches
macros.h File Reference
#include <stdint.h>
#include <stdio.h>
Include dependency graph for macros.h:

Go to the source code of this file.

Macros

#define KNF_LOGE(...)
 printf-style logging of errors/warnings: prints file:func:line and the message to stderr.

Macro Definition Documentation

◆ KNF_LOGE

#define KNF_LOGE ( ...)
Value:
do { \
fprintf(stderr, "%s:%s:%d ", __FILE__, __func__, \
static_cast<int32_t>(__LINE__)); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} while (0)

printf-style logging of errors/warnings: prints file:func:line and the message to stderr.

Usage: KNF_LOGE("bad value: d", x);