Turi Create  4.0
crash_handler.hpp
1 /* Copyright © 2017 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5  */
6 #ifndef TURI_UTIL_CRASH_HANDLER_HPP
7 #define TURI_UTIL_CRASH_HANDLER_HPP
8 
9 #include <string>
10 #include <signal.h>
11 
12 // The filename which we write backtrace to, default empty and we write to STDERR_FILENO
13 extern std::string BACKTRACE_FNAME;
14 
15 void crit_err_hdlr(int sig_num, siginfo_t * info, void * ucontext);
16 
17 #endif