linux - How to convert SIGFPE into a C++-exception -
under win32 it's easy convert seh-exception c++-exception _set_se_translator. there similar way convert signals c++-exceptions on linux? need mapping of sigfpe c++-exception.
with g++, can use -fnon-call-exceptions
option , throw exception fpe signal handler. note not every signal can mapped that, signals arise trapping instructions. fortunately sigfpe such signal.
Comments
Post a Comment