mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
18 lines
326 B
C++
18 lines
326 B
C++
#include "csharp/exception.hpp"
|
|
|
|
namespace csharp {
|
|
Exception& Exception::GetBaseException() {
|
|
auto inner = innerException.get();
|
|
auto back = this;
|
|
|
|
while (inner != nullptr) {
|
|
back = inner;
|
|
inner = inner->innerException.get();
|
|
}
|
|
|
|
return *back;
|
|
}
|
|
}
|
|
|
|
|