| 929 | } |
| 930 | |
| 931 | void 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 | |
| 946 | void CScriptArray::RemoveLast() |
| 947 | { |
no test coverage detected