Turi Create  4.0
fail_method.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_LOGGER_FAIL_METHOD
7 #include <string>
8 
9 #ifdef TURI_LOGGER_THROW_ON_FAILURE
10 #define TURI_LOGGER_FAIL_METHOD(str) throw(str)
11 #define LOGGED_TURI_LOGGER_FAIL_METHOD(str) log_and_throw(str)
12 #else
13 #define TURI_LOGGER_FAIL_METHOD(str) abort()
14 #define LOGGED_TURI_LOGGER_FAIL_METHOD(str) abort()
15 #endif
16 
17 #endif