comparison runtime/block_alloc.h @ 62:b218af069da7

merge
author Mike Pavone <pavone@retrodev.com>
date Sat, 10 Oct 2009 16:43:37 -0400
parents 1b86a1ee500a
children a24eb366195c
comparison
equal deleted inserted replaced
61:fa24ef3b026f 62:b218af069da7
1 #ifndef BLOCK_ALLOC_H_
2 #define BLOCK_ALLOC_H_
3
4 #ifdef _WIN32
5 #define BLOCK_SIZE 1024*16
6 #include <windows.h>
7
8 #define block_alloc(size) VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
9 #define block_free(block,size) VirtualFree(block, size, MEM_RELEASE)
10
11 #endif
12
13 #endif //BLOCK_ALLOC_H_