MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / push

Function push

include/Array.h:700–710  ·  view source on GitHub ↗

Haxe API

Source from the content-addressed store, hash-verified

698
699 // Haxe API
700 inline int push( ELEM_ inVal )
701 {
702 #ifdef HXCPP_GC_GENERATIONAL
703 if (hx::ContainsPointers<ELEM_>())
704 return pushCtx(HX_CTX_GET,inVal);
705 #endif
706 int l = length;
707 EnsureSize((int)l+1);
708 * (ELEM_ *)(mBase + l*sizeof(ELEM_)) = inVal;
709 return length;
710 }
711 inline NullType pop( )
712 {
713 if (!length) return null();

Callers 4

AddFunction · 0.70
__pushFunction · 0.70
PushBackMethod · 0.50
StackContextMethod · 0.50

Calls 2

pushCtxFunction · 0.85
EnsureSizeFunction · 0.85

Tested by

no test coverage detected