blob: 68729088a63ee6c338613f2526ff0654120e007a [file] [log] [blame]
Cindy Liu5c765812021-09-03 02:04:56 -07001// Stub out the LOG implmentations with fprintf
2#ifndef SPRINGBOK_H
3#define SPRINGBOK_H
4
5#include <stdio.h>
6
Cindy Liu1aacd112021-11-11 18:53:15 -08007#define LOG_NOISY(msg, args...) fprintf(stdout, "[NOISY] " msg "\n", ##args)
8#define LOG_DEBUG(msg, args...) fprintf(stdout, "[DEBUG] " msg "\n", ##args)
9#define LOG_INFO(msg, args...) fprintf(stdout, "[INFO] " msg "\n", ##args)
10#define LOG_WARN(msg, args...) fprintf(stdout, "[WARN] " msg "\n", ##args)
11#define LOG_ERROR(msg, args...) fprintf(stderr, "[ERROR] " msg "\n", ##args)
Cindy Liu5c765812021-09-03 02:04:56 -070012
Cindy Liu151e5c22021-11-12 18:59:32 -080013#ifdef __cplusplus
14extern "C" {
15#endif
16int float_to_str(const int len, char *buffer, const float value);
17#ifdef __cplusplus
18}
19#endif
20
Cindy Liu5c765812021-09-03 02:04:56 -070021#endif // SPRINGBOK_H