| 1286 | |
| 1287 | |
| 1288 | static hx::Object * SLJIT_CALL safeCast(hx::Object *obj, TypeData *typeData ) |
| 1289 | { |
| 1290 | if (!obj || !typeData->isClassOf(obj) ) |
| 1291 | { |
| 1292 | CppiaCtx::getCurrent()->exception = HX_INVALID_CAST.mPtr; |
| 1293 | return 0; |
| 1294 | } |
| 1295 | |
| 1296 | return obj; |
| 1297 | } |
| 1298 | |
| 1299 | void genCode(CppiaCompiler *compiler, const JitVal &inDest,ExprType destType) HXCPP_OVERRIDE |
| 1300 | { |