mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-13 04:36:57 +00:00
HOPEFULLY NOW IT WILL WORK I HATE NT I HATE NT I HATE NT
This commit is contained in:
parent
982c0e9cd4
commit
b7fc40f4f6
3 changed files with 4 additions and 3 deletions
|
|
@ -1 +1,2 @@
|
||||||
// Android port (TODO)
|
// Android port (TODO)
|
||||||
|
// If you are reading this, you shall understand that an ANDROID PORT IS NOT READY YET. STOP ASKING.
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include "arena.h"
|
#include "arena.h"
|
||||||
#include "Base/Assert.h"
|
#include "Base/Assert.h"
|
||||||
#include "sys/mman.h" // Required for mmap and MAP_FAILED
|
#include "sys/mman.h"
|
||||||
|
|
||||||
// Memory::Arena Memory::arena_init() {
|
// Memory::Arena Memory::arena_init() {
|
||||||
// // TODO(GloriousTaco): The line below is stupidly unsafe. Replace malloc with mmap() and check the return value.
|
// // TODO(GloriousTaco): The line below is stupidly unsafe. Replace malloc with mmap() and check the return value.
|
||||||
|
|
@ -27,7 +27,7 @@ Memory::Arena Memory::arena_init() {
|
||||||
};
|
};
|
||||||
return arena;
|
return arena;
|
||||||
}
|
}
|
||||||
// new more memsafe code (ownedbywuigi)
|
// new more memsafe code (ownedbywuigi) (i give up on windows compatibility for now, will stick to the old unsafe code)
|
||||||
|
|
||||||
const uint8_t* Memory::arena_allocate(Memory::Arena* arena,
|
const uint8_t* Memory::arena_allocate(Memory::Arena* arena,
|
||||||
const std::size_t size) {
|
const std::size_t size) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue