Paul Greenwood | 31a5488 | 2019-08-01 17:05:09 -0500 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | /** | ||||
Zane Shelley | 83da245 | 2019-10-25 15:45:34 -0500 | [diff] [blame] | 4 | * @file hei_user_defines.hpp |
5 | * @brief The purpose of this file is to create common defines that | ||||
6 | * will be used throughout this library. | ||||
7 | */ | ||||
Paul Greenwood | 31a5488 | 2019-08-01 17:05:09 -0500 | [diff] [blame] | 8 | |
Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 9 | #include <assert.h> |
Zane Shelley | ca9f625 | 2019-10-25 21:17:30 -0500 | [diff] [blame] | 10 | #include <stdio.h> |
Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 11 | |
Zane Shelley | c477199 | 2019-10-28 22:01:49 -0500 | [diff] [blame] | 12 | #define HEI_INF(...) \ |
13 | { \ | ||||
14 | printf("I> " __VA_ARGS__); \ | ||||
15 | printf("\n"); \ | ||||
Zane Shelley | 83da245 | 2019-10-25 15:45:34 -0500 | [diff] [blame] | 16 | } |
Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 17 | |
Zane Shelley | c477199 | 2019-10-28 22:01:49 -0500 | [diff] [blame] | 18 | #define HEI_ERR(...) \ |
19 | { \ | ||||
20 | printf("E> " __VA_ARGS__); \ | ||||
21 | printf("\n"); \ | ||||
Zane Shelley | 83da245 | 2019-10-25 15:45:34 -0500 | [diff] [blame] | 22 | } |
Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 23 | |
Zane Shelley | 83da245 | 2019-10-25 15:45:34 -0500 | [diff] [blame] | 24 | #define HEI_ASSERT(expression) assert(expression); |