<P> Both Clang and GNU Compiler Collection implement a non-standard extension to the C language to support RAII : the `` cleanup '' variable attribute . The following macro annotates a variable with a given destructor function that it will call when the variable goes out of scope : </P>
<P> Both Clang and GNU Compiler Collection implement a non-standard extension to the C language to support RAII : the `` cleanup '' variable attribute . The following macro annotates a variable with a given destructor function that it will call when the variable goes out of scope : </P>
executed when a class goes out of scope
executed when a class goes out of scope
destructor function
destructor function