void logExceptionAndAbort()

in cxx/lyra/lyra_exceptions.cpp [34:49]


void logExceptionAndAbort() {
  if (auto ptr = std::current_exception()) {
    FBJNI_LOGE("Uncaught exception: %s", toString(ptr).c_str());
#ifndef _WIN32
    auto trace = getExceptionTraceHolder(ptr);
    if (trace) {
      logStackTrace(getStackTraceSymbols(trace->stackTrace_));
    }
#endif
  }
  if (gTerminateHandler) {
    gTerminateHandler();
  } else {
    FBJNI_LOGF("Uncaught exception and no gTerminateHandler set");
  }
}