| 112 | return (ExprType)ExprTypeOf<ELEM>::value; |
| 113 | } |
| 114 | int runInt(CppiaCtx *ctx) HXCPP_OVERRIDE |
| 115 | { |
| 116 | Array_obj<ELEM> *thisVal = reinterpret_cast<Array_obj<ELEM>*>(thisExpr->runObject(ctx)); |
| 117 | BCR_CHECK; |
| 118 | int i = args[0]->runInt(ctx); |
| 119 | BCR_CHECK; |
| 120 | ELEM &elem = thisVal->Item(i); |
| 121 | FUNC::run(elem, ctx, args[1]); |
| 122 | #ifdef HXCPP_GC_GENERATIONAL |
| 123 | if (hx::ContainsPointers<ELEM>()) |
| 124 | HX_OBJ_WB_CTX(thisVal,hx::PointerOf(elem),ctx); |
| 125 | #endif |
| 126 | return ValToInt(elem); |
| 127 | } |
| 128 | Float runFloat(CppiaCtx *ctx) HXCPP_OVERRIDE |
| 129 | { |
| 130 | Array_obj<ELEM> *thisVal = reinterpret_cast<Array_obj<ELEM>*>(thisExpr->runObject(ctx)); |