I should have synced https://github.com/pyodide/pyodide/pull/2177 with main before merging it, as there were a few extra commits on main where this version of pre-commit configuration wasn't yet applied.

This should fix CI.
Fix pre-commit CI. I should have synced https://github.com/pyodide/pyodide/pull/2177 with main before merging it, as there were a few extra commits on main where this version of pre-commit configuration wasn't yet applied.

This should fix CI.
#include <exception>
#include <typeinfo>
using namespace std;

extern "C"
{

  const char* exc_what(exception& e) { return e.what(); }

  const std::type_info* exc_type() { return &typeid(exception); }

  const char* exc_typename(std::type_info* type) { return type->name(); }
}
#include <exception>
#include <typeinfo>
using namespace std;

extern "C"
{

  const char* exc_what(exception& e) { return e.what(); }

  const std::type_info* exc_type() { return &typeid(exception); }

  const char* exc_typename(std::type_info* type) { return type->name(); }
}
