MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / sq_arrayappend

Function sq_arrayappend

src/3rdparty/squirrel/squirrel/sqapi.cpp:279–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279SQRESULT sq_arrayappend(HSQUIRRELVM v,SQInteger idx)
280{
281 sq_aux_paramscheck(v,2);
282 SQObjectPtr *arr;
283 _GETSAFE_OBJ(v, idx, OT_ARRAY,arr);
284 _array(*arr)->Append(v->GetUp(-1));
285 v->Pop(1);
286 return SQ_OK;
287}
288
289SQRESULT sq_arraypop(HSQUIRRELVM v,SQInteger idx,SQBool pushval)
290{

Callers 4

array_appendFunction · 0.85
operator()Method · 0.85
SaveObjectMethod · 0.85

Calls 2

AppendMethod · 0.45
PopMethod · 0.45

Tested by

no test coverage detected