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

Method Create

include/hx/Anon.h:216–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214 String name1; _hx_T1 t1;
215
216 inline static hx::Object *Create(const String &inName0, _hx_T0 inT0,
217 const String &inName1, _hx_T1 inT1)
218 {
219 AnonStruct2_obj *result = new AnonStruct2_obj;
220 result->name0 = inName0; result->t0 = inT0;
221 if (hx::ContainsPointers<_hx_T0>()) {
222 HX_OBJ_WB_GET(result, hx::PointerOf(inT0));
223 }
224 result->name1 = inName1; result->t1 = inT1;
225 if (hx::ContainsPointers<_hx_T1>()) {
226 HX_OBJ_WB_GET(result, hx::PointerOf(inT1));
227 }
228 return result;
229 }
230 hx::Val __Field(const String &inField, hx::PropertyAccess) HXCPP_OVERRIDE
231 {
232 if (inField.__s==name0.__s) return t0;

Callers

nothing calls this directly

Calls 1

PointerOfFunction · 0.85

Tested by

no test coverage detected