Differential D3095 Diff 13993 libraries/source/spidermonkey/include-win32-debug/mozilla/AllocPolicy.h
Changeset View
Changeset View
Standalone View
Standalone View
libraries/source/spidermonkey/include-win32-debug/mozilla/AllocPolicy.h
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | ||||
/* vim: set ts=8 sts=2 et sw=2 tw=80: */ | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ | ||||
/* This Source Code Form is subject to the terms of the Mozilla Public | /* This Source Code Form is subject to the terms of the Mozilla Public | ||||
* License, v. 2.0. If a copy of the MPL was not distributed with this | * License, v. 2.0. If a copy of the MPL was not distributed with this | ||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||||
/* | /* | ||||
* An allocation policy concept, usable for structures and algorithms to | * An allocation policy concept, usable for structures and algorithms to | ||||
* control how memory is allocated and how failures are handled. | * control how memory is allocated and how failures are handled. | ||||
*/ | */ | ||||
#ifndef mozilla_AllocPolicy_h | #ifndef mozilla_AllocPolicy_h | ||||
#define mozilla_AllocPolicy_h | #define mozilla_AllocPolicy_h | ||||
#include "mozilla/Attributes.h" | |||||
#include "mozilla/TemplateLib.h" | #include "mozilla/TemplateLib.h" | ||||
#include <stddef.h> | #include <stddef.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
namespace mozilla { | namespace mozilla { | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | public: | ||||
{ | { | ||||
free(aPtr); | free(aPtr); | ||||
} | } | ||||
void reportAllocOverflow() const | void reportAllocOverflow() const | ||||
{ | { | ||||
} | } | ||||
bool checkSimulatedOOM() const | MOZ_MUST_USE bool checkSimulatedOOM() const | ||||
{ | { | ||||
return true; | return true; | ||||
} | } | ||||
}; | }; | ||||
} // namespace mozilla | } // namespace mozilla | ||||
#endif /* mozilla_AllocPolicy_h */ | #endif /* mozilla_AllocPolicy_h */ |
Wildfire Games · Phabricator