blob: 409c0b3a9950d88bc271dd7c136fcd1331834f9e (
plain) (
blame)
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
|
// MIT License, Copyright (c) 2020 Marvin Borner
#ifndef DEF_H
#define DEF_H
/**
* Types
*/
typedef signed char s8;
typedef unsigned char u8;
typedef signed short s16;
typedef unsigned short u16;
typedef signed long s32;
typedef unsigned long u32;
typedef signed long long s64;
typedef unsigned long long u64;
/**
* Macros
*/
#define NULL ((void *)0)
#define malloc(n) ((void *)((HEAP += n) - n)) // TODO: Implement real/better malloc/free
#define free(x)
/**
* Heap
*/
extern u32 HEAP;
extern u32 HEAP_START;
#endif
|