-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmz_fwd.h
48 lines (39 loc) · 1.17 KB
/
mz_fwd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#pragma once
#ifndef _WIN32
#error _WIN32 not defined.
#endif
#ifndef _WIN64
#error _WIN64 not defined.
#endif
#ifndef __clang__
#error clang compiler is required.
#endif
#define NULL ((void *)0)
#ifdef _DEBUG
#define MZ_ASSERT(expression) \
if (!(expression)) \
__debugbreak()
#else
#define MZ_ASSERT(expression) ((void)0)
#endif
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long long u64;
typedef char i8;
typedef short i16;
typedef int i32;
typedef long long i64;
typedef float f32;
typedef double f64;
typedef long long ptrdiff_t;
typedef unsigned long long size_t;
void *memset(void *dest, i32 value, u64 num_bytes);
void *memcpy(void *restrict dest, const void *restrict src, u64 num_bytes);
void *memmove(void *dest, const void *src, u64 num_bytes);
i32 memcmp(const void *ptr1, const void *ptr2, u64 num_bytes);
i32 strcmp(const char *str1, const char *str2);
u64 strlen(const char *str);
void *malloc(u64 size);
void *realloc(void *addr, u64 size);
void free(void *addr);