| 867 | } |
| 868 | |
| 869 | void CScriptArray::RemoveAt(asUINT index) |
| 870 | { |
| 871 | if( index >= buffer->numElements ) |
| 872 | { |
| 873 | // If this is called from a script we raise a script exception |
| 874 | asIScriptContext *ctx = asGetActiveContext(); |
| 875 | if( ctx ) |
| 876 | ctx->SetException("Index out of bounds"); |
| 877 | return; |
| 878 | } |
| 879 | |
| 880 | // Remove the element |
| 881 | Resize(-1, index); |
| 882 | } |
| 883 | |
| 884 | void CScriptArray::RemoveLast() |
| 885 | { |
no outgoing calls
no test coverage detected