Skip to content
Snippets Groups Projects
Select Git revision
  • ec5baf0e268089f2cc1e7f1f088214b5ceb7685f
  • master default protected
  • github/fork/hrani/master
  • github/fork/dilawar/master
  • chamcham
  • chhennapoda
  • wheel
  • 3.2.0-pre0
  • v3.1.3
  • 3.1.2
  • 3.1.1
  • chamcham-3.1.1
  • 3.1.0
  • ghevar_3.0.2_pre2
  • ghevar_3.0.2
15 results

testBuiltins.cpp

Blame
  • error.cpp 337 B
    #include <pybind11/pybind11.h>
    
    #include "error.hpp"
    
    namespace pyarb {
    
    std::exception_ptr py_exception;
    std::mutex py_callback_mutex;
    
    void py_reset_and_throw() {
        if (py_exception) {
            std::exception_ptr copy = py_exception;
            py_exception = nullptr;
            std::rethrow_exception(copy);
        }
    }
    
    } // namespace pyarb