michael@0: michael@0: /* michael@0: * Copyright 2010 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: michael@0: michael@0: #include michael@0: #include "GrTypes.h" michael@0: michael@0: void* GrMalloc(size_t bytes) { michael@0: void* ptr = ::malloc(bytes); michael@0: if (NULL == ptr) { michael@0: ::exit(-1); michael@0: } michael@0: return ptr; michael@0: } michael@0: michael@0: void GrFree(void* ptr) { michael@0: if (ptr) { michael@0: ::free(ptr); michael@0: } michael@0: }