blob: 08ddda921bc3675136189c0a56075b85a28b8312 [file] [log] [blame]
Paul Greenwood31a54882019-08-01 17:05:09 -05001#pragma once
2
3/**
Zane Shelley83da2452019-10-25 15:45:34 -05004 * @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 Greenwood31a54882019-08-01 17:05:09 -05008
Zane Shelley814b1e32019-06-17 20:55:04 -05009#include <assert.h>
Ben Tyner7c796052020-02-03 19:00:37 -060010#include <inttypes.h>
Zane Shelleyca9f6252019-10-25 21:17:30 -050011#include <stdio.h>
Zane Shelley814b1e32019-06-17 20:55:04 -050012
Zane Shelleyc4771992019-10-28 22:01:49 -050013#define HEI_INF(...) \
14 { \
15 printf("I> " __VA_ARGS__); \
16 printf("\n"); \
Zane Shelley83da2452019-10-25 15:45:34 -050017 }
Zane Shelley814b1e32019-06-17 20:55:04 -050018
Zane Shelleyc4771992019-10-28 22:01:49 -050019#define HEI_ERR(...) \
20 { \
21 printf("E> " __VA_ARGS__); \
22 printf("\n"); \
Zane Shelley83da2452019-10-25 15:45:34 -050023 }
Zane Shelley814b1e32019-06-17 20:55:04 -050024
Zane Shelley83da2452019-10-25 15:45:34 -050025#define HEI_ASSERT(expression) assert(expression);