| 571 | //---------- |
| 572 | |
| 573 | static char *StringCharAt(unsigned int i, CScriptString &str) |
| 574 | { |
| 575 | if( i >= str.buffer.size() ) |
| 576 | { |
| 577 | // Set a script exception |
| 578 | asIScriptContext *ctx = asGetActiveContext(); |
| 579 | ctx->SetException("Out of range"); |
| 580 | |
| 581 | // Return a null pointer |
| 582 | return 0; |
| 583 | } |
| 584 | |
| 585 | return &str.buffer[i]; |
| 586 | } |
| 587 | |
| 588 | static void StringCharAt_Generic(asIScriptGeneric *gen) |
| 589 | { |
no test coverage detected