MuckyFoot-UrbanChaos/MuckyBasic/mem.h
2017-05-20 11:14:17 +10:00

41 lines
463 B
C

//
// Memory allocation for the virtual machine.
//
#ifndef _MEM_
#define _MEM_
//
// Allocates an area of memory.
//
void *MEM_alloc(SLONG num_bytes);
//
// Frees an area of memory allocated with MEM_alloc();
//
void MEM_free(void *memory);
//
// Returns the length in bytes of the given block.
//
SLONG MEM_block_size(void *memory);
//
// Returns the total amount of memory allocated in bytes.
//
SLONG MEM_total_bytes_allocated(void);
#endif