Home | History | Annotate | Download | only in dae
      1 /*
      2 * Copyright 2006 Sony Computer Entertainment Inc.
      3 *
      4 * Licensed under the MIT Open Source License, for details please see license.txt or the website
      5 * http://www.opensource.org/licenses/mit-license.php
      6 *
      7 */
      8 
      9 #include <dae/daeMemorySystem.h>
     10 //#include <malloc.h>
     11 
     12 daeRawRef
     13 daeMemorySystem::alloc(daeString pool, size_t n)
     14 {
     15 	(void)pool;
     16 	void *mem = malloc(n);
     17 //	memset(mem,0,n);
     18 //	printf("alloc[%s] - %d = 0x%x\n",pool,n,mem);
     19 	return (daeRawRef)mem;
     20 }
     21 
     22 void
     23 daeMemorySystem::dealloc(daeString pool, daeRawRef mem)
     24 {
     25 	(void)pool;
     26 //	printf("free[%s] - 0x%x\n",pool,mem);
     27 	free(mem);
     28 }
     29 
     30