B
    ›³ëbð  ã               @   s.   d Z ddlZg Zdd„ Zdd„ Ze e¡ dS )zFRegister functions which are executed when SCons exits for any reason.é    Nc              C   s&   x t r t  ¡ \} }}| ||Ž qW dS )z‰run any registered exit functions

    _exithandlers is traversed in reverse order so functions are executed
    last in, first out.
    N)Ú_exithandlersÚpop)ÚfuncÚtargsÚkargs© r   ú.lib/python3.7/site-packages/SCons/exitfuncs.pyÚ_run_exitfuncs   s    r	   c             O   s   t  | ||f¡ dS )z×register a function to be executed upon normal program termination

    func - function to be called at exit
    targs - optional arguments to pass to func
    kargs - optional keyword arguments to pass to func
    N)r   Úappend)r   r   r   r   r   r   Úregister*   s    r   )Ú__doc__Úatexitr   r	   r   r   r   r   r   Ú<module>   s
   