diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-02 02:13:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-02 02:13:42 +0000 |
commit | e62321ac417fc894c15fa1420408a286b9a535d0 (patch) | |
tree | 45ee8dbce0dac6699968b85cc3d1902d89517a59 /include/llvm/System | |
parent | 07cd0ff29802bb36649ed5de5bc39e2210f91c2d (diff) | |
download | external_llvm-e62321ac417fc894c15fa1420408a286b9a535d0.zip external_llvm-e62321ac417fc894c15fa1420408a286b9a535d0.tar.gz external_llvm-e62321ac417fc894c15fa1420408a286b9a535d0.tar.bz2 |
add a new function proto
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/Signals.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/System/Signals.h b/include/llvm/System/Signals.h index 588214e..f29fae9 100644 --- a/include/llvm/System/Signals.h +++ b/include/llvm/System/Signals.h @@ -36,6 +36,15 @@ namespace sys { /// @brief Print a stack trace if a fatal signal occurs. void PrintStackTraceOnErrorSignal(); + /// This function registers a function to be called when the user "interrupts" + /// the program (typically by pressing ctrl-c). When the user interrupts the + /// program, the specified interrupt function is called instead of the program + /// being killed, and the interrupt function automatically disabled. Note + /// that interrupt functions are not allowed to call any non-reentrant + /// functions. An null interrupt function pointer disables the current + /// installed function. + /// @brief Register a function to be called when ctrl-c is pressed. + void SetInterruptFunction(void (*IF)()); } // End sys namespace } // End llvm namespace |