sgs_DefaultMemFunc [function]
void* sgs_DefaultMemFunc( void* userdata, void* ptr, size_t size )
The default memory allocation function.
Expected behavior: same as for sgs_Memory.
Sample implementation (same as in sgscript.h):
if( ptr && size ) return realloc( ptr, size ); else if( size ) return malloc( size ); if( ptr ) free( ptr ); return NULL;