py_matchexc method

bool py_matchexc(
  1. int type
)

Check if the exception is an instance of the given type. This function is roughly equivalent to python's except <T> as e: block. If match, the exception will be stored in py_retval() as handled.

Implementation

bool py_matchexc(
  int type,
) {
  return _py_matchexc(
    type,
  );
}