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

Method runProcess

src/hx/cppia/ArrayBuiltin.cpp:1200–1216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1198
1199
1200 static hx::Object * SLJIT_CALL runProcess( Array_obj<ELEM> *inArray, hx::Object *inFunction)
1201 {
1202 TRY_NATIVE
1203 if (FUNC==afMap)
1204 {
1205#if (HXCPP_API_LEVEL>=500)
1206 Dynamic result = inArray->template map<::Dynamic>(Dynamic(inFunction));
1207#else
1208 Dynamic result = inArray->map(Dynamic(inFunction));
1209#endif
1210 return result.mPtr;
1211 }
1212 else
1213 {
1214 Array<ELEM> result = inArray->filter(Dynamic(inFunction));
1215 return result.mPtr;
1216 }
1217 CATCH_NATIVE
1218 return 0;
1219 }

Callers

nothing calls this directly

Calls 3

DynamicClass · 0.50
mapMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected