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

Method CheckGetPtr

include/Array.h:1007–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1005
1006 #ifdef HXCPP_CHECK_POINTER
1007 inline OBJ_ *CheckGetPtr() const
1008 {
1009 if (!mPtr) hx::NullReference("Array", true);
1010 // The handler might have fixed up the null value
1011 if (!mPtr) hx::NullReference("Array", false);
1012 return mPtr;
1013 }
1014 #else
1015 inline OBJ_ *CheckGetPtr() const { return mPtr; }
1016 #endif

Callers

nothing calls this directly

Calls 1

NullReferenceFunction · 0.85

Tested by

no test coverage detected