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

Method runIndex

src/hx/cppia/ArrayBuiltin.cpp:1113–1119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111
1112
1113 static int SLJIT_CALL runIndex( Array_obj<ELEM> *inArray, typename ExprBaseTypeOf<ELEM>::Base inBase, hx::Object *pos)
1114 {
1115 if (FUNC==afIndexOf)
1116 return inArray->indexOf(inBase,pos);
1117 else
1118 return inArray->lastIndexOf(inBase,pos);
1119 }
1120
1121 static void SLJIT_CALL runInsert( Array_obj<ELEM> *inArray, int pos, typename ExprBaseTypeOf<ELEM>::Base inBase)
1122 {

Callers

nothing calls this directly

Calls 2

indexOfMethod · 0.80
lastIndexOfMethod · 0.80

Tested by

no test coverage detected