summaryrefslogtreecommitdiff
path: root/src/dynamic-array.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynamic-array.hpp')
-rw-r--r--src/dynamic-array.hpp10
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 */