| 371 | } |
| 372 | |
| 373 | void 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 |
no test coverage detected