Beispiel #1
0
void* enet_malloc(size_t size)
{
	void* memory = callbacks.malloc(size);

	if (memory == NULL)
		callbacks.no_memory();

	return memory;
}
Beispiel #2
0
void *
enet_malloc (size_t size)
{
   void * memory = callbacks.malloc (size);

   //if (memory == NULL)
   //  abort ();
     
   //printf("enet_malloc %ld,%d,%d\n", (unsigned long)memory, size, ++mem_counter);

   return memory;
}
Beispiel #3
0
void
enet_free (void * memory)
{
    callbacks.free (memory);
}
Beispiel #4
0
int
enet_rand (void)
{
   return callbacks.rand ();
}
Beispiel #5
0
void
enet_free (void * memory)
{
   callbacks.free (memory);
   //printf("enet_free %ld, %d\n", (unsigned long)memory, --mem_counter);
}