Conversation
|
Maybe the easiest thing to do is just include a file Only drawback to this approach is that we do have option My proposal is, then :
If the user hasn't overridden the virtual feenableexept(), alert them that they do not appear to have feenableexcept on their system and should consider our DYI option, at their own risk, of course. |
|
|
||
| /* This doesn't appear to actually do anything */ | ||
| fclaw2d_vtable_t *vt = fclaw2d_vt(); | ||
| signal(SIGFPE, vt->fpe_signal_handler); |
There was a problem hiding this comment.
I also this signal never fires on Apple Silicon
This snippet tests a DYI approach to handling exceptions for the M1 :
fenv.handsignal.henable_floating_point_exceptions().fp_exception_glibc_extension.{c,h}feeenableexceptis available.Ideas for code taken from
https://developer.apple.com/forums/thread/689159
and
https://stackoverflow.com/questions/69059981/how-to-trap-floating-point-exceptions-on-m1-macs