mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-02 18:12:43 +00:00
Compilation with an environment variable SLIC3R_HAS_BROKEN_CROAK set
will force the perl confess / croak called from a C++ code to print an error message and exit. There is a bug in some Strawberry Perl instalations leading to an interpreter hang up and an exit with a reasonable message is better than that.
This commit is contained in:
@@ -153,4 +153,13 @@ SV* polynode2perl(const ClipperLib::PolyNode& node);
|
||||
|
||||
}
|
||||
|
||||
#ifdef SLIC3R_HAS_BROKEN_CROAK
|
||||
#undef croak
|
||||
#ifdef _MSC_VER
|
||||
#define croak(...) confess_at(__FILE__, __LINE__, __FUNCTION__, __VA_ARGS__)
|
||||
#else
|
||||
#define croak(...) confess_at(__FILE__, __LINE__, __func__, __VA_ARGS__)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user