dsekai
World engine for retrocomputers.
Loading...
Searching...
No Matches
fakem.h
Go to the documentation of this file.
1
2#ifndef MEMORY_FAKEM_H
3#define MEMORY_FAKEM_H
4
16
22
23#ifdef ANCIENT_C
24
25typedef char* MEMORY_PTR;
26typedef const char* CONST_MEMORY_PTR;
27# ifdef PLATFORM_DOS
28typedef char far * MEMORY_FAR_PTR;
29typedef const char far * CONST_MEMORY_FAR_PTR;
30# else
31typedef char* MEMORY_FAR_PTR;
32typedef const char* CONST_MEMORY_FAR_PTR;
33# endif
34
35#else
36
42typedef void* MEMORY_PTR;
43
45typedef const void* CONST_MEMORY_PTR;
46# ifdef PLATFORM_DOS
47typedef void far * MEMORY_FAR_PTR;
48typedef const void far * CONST_MEMORY_FAR_PTR;
49# else
51typedef void* MEMORY_FAR_PTR;
53typedef const void* CONST_MEMORY_FAR_PTR;
54# endif
55
56#endif /* ANCIENT_C */
57
60#endif /* !MEMORY_FAKEM_H */
61
const void * CONST_MEMORY_PTR
A read-only MEMORY_PTR.
Definition: fakem.h:45
const void * CONST_MEMORY_FAR_PTR
A read-only MEMORY_FAR_PTR.
Definition: fakem.h:53
void * MEMORY_FAR_PTR
On certain platforms, a MEMORY_PTR that exists outside of the current page.
Definition: fakem.h:51
void * MEMORY_PTR
A C-style memory pointer that can be safely dereferenced.
Definition: fakem.h:42
struct FAKE_MEMORY_HANDLE * MEMORY_HANDLE
A reference to a block of memory which the operating system may move around on its own to free up spa...
Definition: fakem.h:21
An emulated memory handle for modern systems. Overridden on most platforms.
Definition: memory.h:20