Re:Banned C standard library functions in Git source code
by susam on Sunday August 25, 2019 @11:11AM
(#20793402)
I have worked in large code bases (RSA NetWitness, Oracle Database, etc.) where setjmp/longjmp were used to create macros for exception handling using TRY-CATCH-ENDTRY blocks in C.
[ Parent
| on HN ]
Re:Banned C standard library functions in Git source code
by saagarjha on Sunday August 25, 2019 @11:14AM
(#20793416)
Personally, I feel like wrapping exception handlers in macros makes it easy for people to do unsafe things with it like dynamically allocating memory or calling system functions that can’t handle it correctly.