Cindy Liu | 5c76581 | 2021-09-03 02:04:56 -0700 | [diff] [blame] | 1 | // Stub out the LOG implmentations with fprintf |
| 2 | #ifndef SPRINGBOK_H |
| 3 | #define SPRINGBOK_H |
| 4 | |
| 5 | #include <stdio.h> |
| 6 | |
Cindy Liu | 1aacd11 | 2021-11-11 18:53:15 -0800 | [diff] [blame] | 7 | #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 Liu | 5c76581 | 2021-09-03 02:04:56 -0700 | [diff] [blame] | 12 | |
Cindy Liu | 151e5c2 | 2021-11-12 18:59:32 -0800 | [diff] [blame] | 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | int float_to_str(const int len, char *buffer, const float value); |
| 17 | #ifdef __cplusplus |
| 18 | } |
| 19 | #endif |
| 20 | |
Cindy Liu | 5c76581 | 2021-09-03 02:04:56 -0700 | [diff] [blame] | 21 | #endif // SPRINGBOK_H |