Moving the kernel to modern C
Moving the kernel to modern C
Posted Feb 24, 2022 17:36 UTC (Thu) by iabervon (subscriber, #722)Parent article: Moving the kernel to modern C
Instead of leaking a not-necessarily-valid pointer, couldn't the macro set it to NULL at the end? Actually, I'm surprised there isn't a standard trick for doing an assignment that will be an error unless the compiler eliminates it as dead code.
