Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mozz3d committed Feb 5, 2025
1 parent 21fb745 commit 150f196
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions include/RED4ext/Containers/DynArray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <type_traits>

#include <RED4ext/Common.hpp>
#include <RED4ext/Detail/Containers/ArrayIterator.hpp>
#include <RED4ext/Detail/AddressHashes.hpp>
#include <RED4ext/Detail/Containers/ArrayIterator.hpp>
#include <RED4ext/Memory/Allocators.hpp>
#include <RED4ext/Relocation.hpp>
#include <RED4ext/Utils.hpp>
Expand Down Expand Up @@ -464,8 +464,9 @@ struct DynArray

constexpr uint32_t alignment = alignof(ValueType);

using func_t = void (*)(DynArray* aThis, uint32_t aCapacity, uint32_t aElementSize, uint32_t aAlignment,
void (*aMoveFunc)(Pointer aDstBuffer, Pointer aSrcBuffer, int32_t aSrcSize, DynArray* aSrcArray));
using func_t =
void (*)(DynArray* aThis, uint32_t aCapacity, uint32_t aElementSize, uint32_t aAlignment,
void (*aMoveFunc)(Pointer aDstBuffer, Pointer aSrcBuffer, int32_t aSrcSize, DynArray* aSrcArray));

static UniversalRelocFunc<func_t> func(Detail::AddressHashes::DynArray_Realloc);
func(this, aNewCapacity, sizeof(ValueType), alignment >= 8 ? alignment : 8, nullptr);
Expand Down
2 changes: 1 addition & 1 deletion include/RED4ext/Package.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include <cstdint>

#include <RED4ext/Common.hpp>
#include <RED4ext/Containers/Span.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/ResourceLoader.hpp>
#include <RED4ext/Containers/Span.hpp>

namespace RED4ext
{
Expand Down
2 changes: 1 addition & 1 deletion include/RED4ext/ResourceLoader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include <RED4ext/Callback.hpp>
#include <RED4ext/Common.hpp>
#include <RED4ext/Detail/AddressHashes.hpp>
#include <RED4ext/Containers/DynArray.hpp>
#include <RED4ext/Detail/AddressHashes.hpp>
#include <RED4ext/HashMap.hpp>
#include <RED4ext/JobQueue.hpp>
#include <RED4ext/Memory/Allocators.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

#include <RED4ext/CName.hpp>
#include <RED4ext/Common.hpp>
#include <RED4ext/Containers/Span.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/AnimBufferState.hpp>
#include <RED4ext/Scripting/Natives/AnimKeyFrames.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/AnimDataAddress.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/IAnimationBuffer.hpp>
#include <RED4ext/Containers/Span.hpp>

#include <cstdint>

namespace RED4ext
Expand Down

0 comments on commit 150f196

Please sign in to comment.