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

Function CanBeCaught

src/hx/Debugger.cpp:1226–1244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1224
1225
1226static 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

Callers 2

__hxcpp_dbg_checkedThrowFunction · 0.85

Calls 2

CatchesMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected