Debian Codegraph @

src/error.h

raw symbols SCIP
1 #ifndef ERROR_H_
2 #define ERROR_H_
3
4 #define R_NO_REMAP
5 #include <R.h>
6 #include <Rinternals.h>
7 #undef R_NO_REMAP
8
9 #include <stdarg.h>
10
11 #undef ERROR
12 #include "uv.h"
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 #define STRING_I(x) #x
19 #define STRING(x) STRING_I(x)
20
21 #define stop_for_error(req, format, one) \
22 signal_condition(req, __FILE__ ":" STRING(__LINE__), true, format, one)
23
24 #define stop_for_error2(req, format, one, two) \
25 signal_condition(req, __FILE__ ":" STRING(__LINE__), true, format, one, two)
26
27 #define warn_for_error(req, format, one) \
28 signal_condition(req, __FILE__ ":" STRING(__LINE__), false, format, one)
29
30 bool signal_condition(
31 uv_fs_t req, const char* loc, bool error, const char* format, ...);
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif /* ERROR_H_ */