memory.h File Reference

This graph shows which files directly or indirectly include this file:

Defines

#define bpmdj_allocate(size, type)   (type*)myalloc(sizeof(type)*(size), __FILE__, __LINE__)
#define bpmdj_array(name, size, type)   type * name = bpmdj_allocate(size,type)
#define bpmdj_reallocate(thing, size, type)   (type*)myrealloc(thing,sizeof(type)*(size))
#define bpmdj_deallocate(thing)   myfree(thing);

Functions

void * myalloc (int size, const char *file, int line)
void * myrealloc (void *thing, int size)
void myfree (void *)

Define Documentation

#define bpmdj_allocate ( size,
type   )     (type*)myalloc(sizeof(type)*(size), __FILE__, __LINE__)
#define bpmdj_array ( name,
size,
type   )     type * name = bpmdj_allocate(size,type)

Referenced by energize().

#define bpmdj_deallocate ( thing   )     myfree(thing);
#define bpmdj_reallocate ( thing,
size,
type   )     (type*)myrealloc(thing,sizeof(type)*(size))

Function Documentation

void* myalloc ( int  size,
const char *  file,
int  line 
)

References assert().

void myfree ( void *   ) 
void* myrealloc ( void *  thing,
int  size 
)

References assert().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2