pyErrOccurred function Null safety

bool pyErrOccurred ()

Checks whether an exception occured in python

Implementation

bool pyErrOccurred() {
  return dartpyc.PyErr_Occurred() != nullptr;
}