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 <stdexcept>
using namespace std;

class myexception : public exception
{
  virtual const char* what() const throw() { return "My exception happened"; }
} myex;

extern "C" char*
throw_exc(int x)
{
  if (x == 1) {
    throw 1000;
  } else if (x == 2) {
    throw 'c';
  } else if (x == 3) {
    throw runtime_error("abc");
  } else if (x == 4) {
    throw myex;
  } else {
    throw "abc";
  }
}
#include <exception>
#include <stdexcept>
using namespace std;

class myexception : public exception
{
  virtual const char* what() const throw() { return "My exception happened"; }
} myex;

extern "C" char*
throw_exc(int x)
{
  if (x == 1) {
    throw 1000;
  } else if (x == 2) {
    throw 'c';
  } else if (x == 3) {
    throw runtime_error("abc");
  } else if (x == 4) {
    throw myex;
  } else {
    throw "abc";
  }
}
