Skip to content

Commit

Permalink
Fix for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sarlinpe authored Feb 3, 2024
1 parent d823a3c commit 6f12e7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _pyceres/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ void PyBindLogStack(const char* data, T size) {
std::cerr << std::endl << std::endl << std::endl;
}

__attribute__((noreturn)) void PyBindLogTermination() {
#ifdef __GNUC__
__attribute__((noreturn))
#endif
void PyBindLogTermination() {
std::chrono::milliseconds timespan(2000); // or whatever
py::scoped_estream_redirect stream(
std::cerr, // std::ostream&
Expand Down

0 comments on commit 6f12e7f

Please sign in to comment.