3 ms·
__try and __except are win32-specific language extensions for C that do not exist in Zig. They become code which adds a linked-list item (exception handler ent
by Dwedit 3y ago
__try and __except are win32-specific language extensions for C that do not exist in Zig. They become code which adds a linked-list item (exception handler entry) somewhere into the TEB. Win32 requires that you call all the Stack Unwind entries within your exception handler. When your exception handler is done, you longjmp out, or return to the offending code. Using the language extensions for exception handling is far more friendly than doing it manually with low-level code.