Zane Shelley | 876bc2a | 2019-07-23 12:55:37 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Zane Shelley | 01e590b | 2020-05-08 21:11:46 -0500 | [diff] [blame] | 3 | // The purpose of this file is to include common headers that will be used |
| 4 | // internally throughout this library. It is advised not to include this in any |
| 5 | // headers that are installed externally to avoid ballooning the number of |
| 6 | // headers that are externally exposed. |
Zane Shelley | 876bc2a | 2019-07-23 12:55:37 -0500 | [diff] [blame] | 7 | |
Zane Shelley | a61f4c5 | 2019-08-01 13:58:49 -0500 | [diff] [blame] | 8 | // Standard library includes |
Zane Shelley | 01e590b | 2020-05-08 21:11:46 -0500 | [diff] [blame] | 9 | #include <assert.h> |
| 10 | #include <inttypes.h> |
Zane Shelley | 876bc2a | 2019-07-23 12:55:37 -0500 | [diff] [blame] | 11 | #include <stdint.h> |
Zane Shelley | ca9f625 | 2019-10-25 21:17:30 -0500 | [diff] [blame] | 12 | #include <stdlib.h> |
| 13 | |
Zane Shelley | 6722b5b | 2020-05-12 22:09:04 -0500 | [diff] [blame] | 14 | #include <algorithm> |
Zane Shelley | d0af358 | 2019-09-19 10:48:59 -0500 | [diff] [blame] | 15 | #include <map> |
Zane Shelley | dd69c96 | 2020-05-05 22:19:11 -0500 | [diff] [blame] | 16 | #include <memory> |
Zane Shelley | b406de4 | 2019-09-09 16:10:38 -0500 | [diff] [blame] | 17 | #include <vector> |
Zane Shelley | 876bc2a | 2019-07-23 12:55:37 -0500 | [diff] [blame] | 18 | |
Zane Shelley | 01e590b | 2020-05-08 21:11:46 -0500 | [diff] [blame] | 19 | // Library includes |
Zane Shelley | b406de4 | 2019-09-09 16:10:38 -0500 | [diff] [blame] | 20 | #include <hei_chip.hpp> |
Zane Shelley | b406de4 | 2019-09-09 16:10:38 -0500 | [diff] [blame] | 21 | #include <hei_types.hpp> |
Zane Shelley | 01e590b | 2020-05-08 21:11:46 -0500 | [diff] [blame] | 22 | #include <hei_user_interface.hpp> |
| 23 | |
| 24 | // Common macros used throughout this library |
Zane Shelley | 6722b5b | 2020-05-12 22:09:04 -0500 | [diff] [blame] | 25 | #define HEI_ASSERT(expression) assert(expression) |
Zane Shelley | 01e590b | 2020-05-08 21:11:46 -0500 | [diff] [blame] | 26 | |
| 27 | #define HEI_ERR(...) \ |
| 28 | { \ |
| 29 | libhei::hei_err((char*)__VA_ARGS__); \ |
| 30 | } |
| 31 | |
| 32 | #define HEI_INF(...) \ |
| 33 | { \ |
| 34 | libhei::hei_inf((char*)__VA_ARGS__); \ |
| 35 | } |