37 lines
669 B
C
37 lines
669 B
C
#ifndef BREEZE_DEFINES_H
|
|
#define BREEZE_DEFINES_H
|
|
|
|
#include <assert.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
typedef uint8_t u8;
|
|
typedef uint16_t u16;
|
|
typedef uint32_t u32;
|
|
typedef uint64_t u64;
|
|
|
|
typedef int8_t i8;
|
|
typedef int16_t i16;
|
|
typedef int32_t i32;
|
|
typedef int64_t i64;
|
|
|
|
typedef float f32;
|
|
typedef double f64;
|
|
|
|
#define BZ_ASSERT(e) assert(e)
|
|
|
|
#define BZ_MAX(a, b) (((a) > (b)) ? (a) : (b))
|
|
#define BZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
|
|
#define BZ_ABS(a) ((a >= 0) ? (a) : (-(a)))
|
|
|
|
#define DEBUG_MODE
|
|
#ifndef DEBUG_MODE
|
|
#undef BZ_ASSERT
|
|
#define BZ_ASSERT(e) BZ_UNUSED(x)
|
|
#endif
|
|
|
|
#define BZ_UNUSED(x) (void)(x)
|
|
|
|
#endif //BREEZE_DEFINES_H
|