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

Method beginCatch

src/hx/Debug.cpp:373–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373void StackContext::beginCatch(bool inAll)
374{
375 if (inAll)
376 {
377 mExceptionStack.clear();
378 // Copy remaineder of stack frames to exception stack...
379 // This will use the default operator=, which will copy the pointers.
380 // This is what we want, since the pointers are pointers to constant data
381 for(int i=mStackFrames.size()-1;i>=0;--i)
382 mExceptionStack.push( *mStackFrames[i] );
383 }
384 // Lock-in the excpetion stack
385 mIsUnwindingException = false;
386}
387
388
389

Callers 3

CriticalErrorHandlerFunction · 0.80
__hx_dump_stackFunction · 0.80

Calls 3

clearMethod · 0.45
sizeMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected