I learned about Visual C Structured Exception Handling (SEH) recently. I am considering implementing it, but my code is supposed to be as cross platform as possible. In the future, I'm thinking of porting ny code to Linux, MAC, Android, IOS and potentially consoles. Is SEH something that can work on all of these platforms?!
CodePudding user response:
SEH is a Microsoft-specific extension. Clang-cl has partial support for SEH (on Windows platforms), which could presumably be adapted for use on other OSes, but it wouldn’t be straightforward and it wouldn’t offer support for the sorts of things you can catch with SEH but not standard C extensions. Don’t use SEH if you want to write platform-independent code.