// This file is part of the uSTL library, an STL implementation. // // Copyright (c) 2005 by Mike Sharov // This file is free software, distributed under the MIT License. #include "unew.h" void* tmalloc (size_t n) { void* p = malloc (n); if (!p) return nullptr; // throw ustl::bad_alloc (n); return p; }