mirror of https://github.com/flysand7/ciabatta.git
29 lines
708 B
C
29 lines
708 B
C
|
|
#pragma once
|
|
|
|
// Since we're re-defining noreturn below, this would mess
|
|
// with __declspec(noreturn) in windows headers, which
|
|
// is hidden behind a define. Good thing, because now we
|
|
// can override that define over here.
|
|
#if defined(_CIA_OS_WINDOWS)
|
|
#define DECLSPEC_NORETURN __declspec("noreturn")
|
|
#endif
|
|
|
|
// Pre-C23 keyword macros and stddef
|
|
#define static_assert _Static_assert
|
|
#define NULL ((void *)0)
|
|
|
|
// Assert commonly-accepted platform-invariant sizes
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
// Short type definitions
|
|
typedef int8_t i8;
|
|
typedef uint8_t u8;
|
|
typedef int16_t i16;
|
|
typedef uint16_t u16;
|
|
typedef int32_t i32;
|
|
typedef uint32_t u32;
|
|
typedef int64_t i64;
|
|
typedef uint64_t u64;
|