| 1224 | |
| 1225 | |
| 1226 | static bool CanBeCaught(Dynamic e) |
| 1227 | { |
| 1228 | hx::JustGcStackFrame frame; |
| 1229 | |
| 1230 | QuickVec<StackFrame *> &frames = frame.ctx->mStackFrames; |
| 1231 | |
| 1232 | for(int i=frames.size()-1; i>=0; i--) |
| 1233 | { |
| 1234 | StackCatchable *catchable = frames[i]->catchables; |
| 1235 | while (catchable) { |
| 1236 | if (catchable->Catches(e)) { |
| 1237 | return true; |
| 1238 | } |
| 1239 | catchable = catchable->mNext; |
| 1240 | } |
| 1241 | } |
| 1242 | |
| 1243 | return false; |
| 1244 | } |
| 1245 | |
| 1246 | |
| 1247 |
no test coverage detected