| 45 | } |
| 46 | |
| 47 | void builtin_array_resize ( Array & pArray, int newSize, int stride, Context * context, LineInfoArg * at ) { |
| 48 | if ( newSize<0 ) context->throw_error_at(at, "resizing array to negative size %i", newSize); |
| 49 | array_resize ( *context, pArray, newSize, stride, /*zero*/ true, at ); |
| 50 | } |
| 51 | |
| 52 | void builtin_array_resize_no_init ( Array & pArray, int newSize, int stride, Context * context, LineInfoArg * at ) { |
| 53 | if ( newSize<0 ) context->throw_error_at(at, "resizing array to negative size %i", newSize); |
no test coverage detected