Changeset View
Changeset View
Standalone View
Standalone View
source/lib/allocators/dynarray.cpp
Show All 24 Lines | |||||
*/ | */ | ||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "lib/allocators/dynarray.h" | #include "lib/allocators/dynarray.h" | ||||
#include "lib/alignment.h" | #include "lib/alignment.h" | ||||
#include "lib/sysdep/vm.h" | #include "lib/sysdep/vm.h" | ||||
#include <cstring> | |||||
#include <string> | |||||
static Status validate_da(DynArray* da) | static Status validate_da(DynArray* da) | ||||
{ | { | ||||
if(!da) | if(!da) | ||||
WARN_RETURN(ERR::INVALID_POINTER); | WARN_RETURN(ERR::INVALID_POINTER); | ||||
// u8* const base = da->base; | // u8* const base = da->base; | ||||
const size_t max_size_pa = da->max_size_pa; | const size_t max_size_pa = da->max_size_pa; | ||||
const size_t cur_size = da->cur_size; | const size_t cur_size = da->cur_size; | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator