| 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> | 
| Ben Tyner | 7c79605 | 2020-02-03 19:00:37 -0600 | [diff] [blame] | 10 | #include <inttypes.h> | 
| Zane Shelley | ca9f625 | 2019-10-25 21:17:30 -0500 | [diff] [blame] | 11 | #include <stdio.h> | 
| Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 12 | |
| Zane Shelley | c477199 | 2019-10-28 22:01:49 -0500 | [diff] [blame] | 13 | #define HEI_INF(...) \ | 
| 14 | { \ | ||||
| 15 | printf("I> " __VA_ARGS__); \ | ||||
| 16 | printf("\n"); \ | ||||
| Zane Shelley | 83da245 | 2019-10-25 15:45:34 -0500 | [diff] [blame] | 17 | } | 
| Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 18 | |
| Zane Shelley | c477199 | 2019-10-28 22:01:49 -0500 | [diff] [blame] | 19 | #define HEI_ERR(...) \ | 
| 20 | { \ | ||||
| 21 | printf("E> " __VA_ARGS__); \ | ||||
| 22 | printf("\n"); \ | ||||
| Zane Shelley | 83da245 | 2019-10-25 15:45:34 -0500 | [diff] [blame] | 23 | } | 
| Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 24 | |
| Zane Shelley | 83da245 | 2019-10-25 15:45:34 -0500 | [diff] [blame] | 25 | #define HEI_ASSERT(expression) assert(expression); |