You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
662 B
C

//
// G A M E.O.N.E - LOW LEVEL LIB V1.0
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
// Licensed under the terms of LGPL.
//:---------------------------------------------------------------------------
//:Description
//
// GAME.O.N.E - LOWLEVELLIB V1.0
//
#ifndef _LLMEM_H
#define _LLMEM_H
/*!
* memory functions
*/
void * llmem_alloc( int size );
void llmem_free( void * ptr );
inline void * operator new( unsigned int sz )
{
void *res = llmem_alloc( sz );
return res;
}
inline void operator delete( void * ptr )
{
llmem_free( ptr );
}
extern int llmem_current_allocated_memory;
extern int llmem_maxpeak_allocated_memory;
#endif