Scarab  v2.4.4
Project 8 C++ Utility Library
terminate.hh
Go to the documentation of this file.
1 /*
2  * terminate.hh
3  *
4  * Created on: May 23, 2017
5  * Author: N.S. Oblath
6  */
7 
8 #ifndef SCARAB_TERMINATE_HH_
9 #define SCARAB_TERMINATE_HH_
10 
11 
12 #ifndef _GNU_SOURCE
13 #define _GNU_SOURCE
14 #endif
15 #ifndef __USE_GNU
16 #define __USE_GNU
17 #endif
18 
19 namespace scarab
20 {
21  // Option 1: Use the terminate function
22  void terminate();
23 
24  // Option 2: Handle SIGABRT
25  //void crit_err_hdlr(int sig_num, siginfo_t * info, void * ucontext);
26 
27 } /* namespace scarab */
28 
29 #endif /* SCARAB_TERMINATE_HH_ */
void terminate()
Definition: terminate.cc:32