MCPcopy Create free account
hub / github.com/WheretIB/nullc / ShrinkAutoArray

Method ShrinkAutoArray

NULLC/StdLib.cpp:914–922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

912}
913
914void NULLC::ShrinkAutoArray(NULLCAutoArray* arr, unsigned size)
915{
916 if(size > (unsigned)arr->len)
917 {
918 nullcThrowError("ERROR: cannot extend array");
919 return;
920 }
921 arr->len = size;
922}
923
924int NULLC::IsCoroutineReset(NULLCRef f)
925{

Callers

nothing calls this directly

Calls 1

nullcThrowErrorFunction · 0.70

Tested by

no test coverage detected