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;
}