MCPcopy Create free account
hub / github.com/anjo76/angelscript / RemoveAt

Method RemoveAt

sdk/add_on/scriptarray/scriptarray.cpp:931–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929}
930
931void CScriptArray::RemoveAt(asUINT index)
932{
933 if( index >= buffer->numElements )
934 {
935 // If this is called from a script we raise a script exception
936 asIScriptContext *ctx = asGetActiveContext();
937 if( ctx )
938 ctx->SetException("Index out of bounds");
939 return;
940 }
941
942 // Remove the element
943 Resize(-1, index);
944}
945
946void CScriptArray::RemoveLast()
947{

Callers 1

Calls 2

ResizeFunction · 0.85
SetExceptionMethod · 0.80

Tested by

no test coverage detected