MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / builtin_array_reserve

Function builtin_array_reserve

src/builtin/module_builtin_array.cpp:57–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 void builtin_array_reserve ( Array & pArray, int newSize, int stride, Context * context, LineInfoArg * at ) {
58 if ( newSize<0 ) return; // no point of displaying errors, if reserve fails
59 array_reserve( *context, pArray, newSize, stride, at );
60 }
61
62 void builtin_array_resize_i64 ( Array & pArray, int64_t newSize, int stride, Context * context, LineInfoArg * at ) {
63 if ( newSize<0 ) context->throw_error_at(at, "resizing array to negative size %lld", (long long)newSize);

Callers

nothing calls this directly

Calls 1

array_reserveFunction · 0.85

Tested by

no test coverage detected