| 690 | |
| 691 | |
| 692 | bool __instanceof(const Dynamic &inValue, const Dynamic &inType) |
| 693 | { |
| 694 | if (inValue==null()) |
| 695 | return false; |
| 696 | if (inType==hx::Object::__SGetClass()) |
| 697 | return true; |
| 698 | hx::Class c = inType; |
| 699 | if (c==null()) |
| 700 | return false; |
| 701 | return c->CanCast(inValue.GetPtr()); |
| 702 | } |
| 703 | |
| 704 | |
| 705 | int __int__(double x) |