C language mechanism for error handling and deferred cleanup
Abstract
This paper introduces the implementation of a C language mechanism for error handling and deferred cleanup adapted from similar features in the Go programming language.This mechanism improves the proximity, visibility, maintainability, robustness, and security of cleanup and error handling over existing language features.This feature is under consideration for inclusion in the C Standard.The library implementation of the features described by this paper is publiclyavailable under an Open Source License at https://gustedt.gitlabpages.inria.fr/defer/.
Origin : Files produced by the author(s)