NativeArray does not need to return const pointers in Angelscript.
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2021-11-20 15:30:03 +01:00
1 parent b40e004724
commit 6480d97915
2 files changed
+2 -3

No files matched your search

@@ -1 +0,0 @@
#include "NativeArray.hpp"
@@ -36,9 +36,9 @@ public:
Ensure(engine->RegisterObjectMethod("narray<T>", "uint64 get_Length() const property",
asMETHOD(NativeArray, Length), asCALL_THISCALL) >= 0);
Ensure(engine->RegisterObjectMethod("narray<T>", "const T@ At(uint64 index) const", asMETHOD(NativeArray, At),
Ensure(engine->RegisterObjectMethod("narray<T>", "T@ At(uint64 index) const", asMETHOD(NativeArray, At),
asCALL_THISCALL) >= 0);
Ensure(engine->RegisterObjectMethod("narray<T>", "const T@ get_opIndex(uint64 index) const property",
Ensure(engine->RegisterObjectMethod("narray<T>", "T@ get_opIndex(uint64 index) const property",
asMETHOD(NativeArray, At), asCALL_THISCALL) >= 0);
}
};