From abcb22c518f39ac5095e58294eab150cb8cd9afe Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 31 Aug 2023 16:25:16 -0400 Subject: cleanup naming conventions and header defs --- src/dynamic-array.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/dynamic-array.hpp') diff --git a/src/dynamic-array.hpp b/src/dynamic-array.hpp index a2d2d77..ddcc8b4 100644 --- a/src/dynamic-array.hpp +++ b/src/dynamic-array.hpp @@ -1,5 +1,5 @@ -#ifndef FOUR_ZED_ZED_DYNAMIC_ARRAY_HPP -#define FOUR_ZED_ZED_DYNAMIC_ARRAY_HPP +#ifndef PKE_DYNAMIC_ARRAY_HPP +#define PKE_DYNAMIC_ARRAY_HPP #include "memory.hpp" #include "macros.hpp" @@ -94,10 +94,10 @@ template inline void DynArray::Remove(std::size_t index) { assert(this->elementCount == 0 && "Invalid DynArray::Remove() - Contains no elements"); assert(index >= this->elementCount && "Invalid DynArray::Remove() - Out of bounds"); uint64_t moveCount = (this->elementCount - index - 1); - auto *tmp = pke::PkeNew(this->elementSize * moveCount); + auto *tmp = Pke_New(this->elementSize * moveCount); memcpy(tmp, this->ptr + (this->elementSize * (index + 1)), this->elementSize * moveCount); memcpy(this->ptr + (this->elementSize * index), tmp, this->elementSize * moveCount); - pke::PkeDelete(tmp, moveCount * this->elementSize); + Pke_Delete(tmp, moveCount * this->elementSize); this->elementCount -= 1; } @@ -115,4 +115,4 @@ template inline void DynArray::Resize(int64_t count) { this->elementCount = count; } -#endif /* FOUR_ZED_ZED_DYNAMIC_ARRAY_HPP */ +#endif /* PKE_DYNAMIC_ARRAY_HPP */ -- cgit v1.2.3