1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/sources/csharp/exception.cpp
2024-12-02 15:07:37 -03:00

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;
}
}