diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-08-31 16:25:16 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-06 17:24:23 -0400 |
| commit | abcb22c518f39ac5095e58294eab150cb8cd9afe (patch) | |
| tree | d759a849edf5fba8f8e25a67229647c621dc809d /src/dynamic-array.hpp | |
| parent | 3c115e49721bd479ee04d7b8410897869a779258 (diff) | |
cleanup naming conventions and header defs
Diffstat (limited to 'src/dynamic-array.hpp')
| -rw-r--r-- | src/dynamic-array.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
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 <typename T> inline void DynArray<T>::Remove(std::size_t index) { assert(this->elementCount == 0 && "Invalid DynArray<T>::Remove() - Contains no elements"); assert(index >= this->elementCount && "Invalid DynArray<T>::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 <typename T> inline void DynArray<T>::Resize(int64_t count) { this->elementCount = count; } -#endif /* FOUR_ZED_ZED_DYNAMIC_ARRAY_HPP */ +#endif /* PKE_DYNAMIC_ARRAY_HPP */ |
