roadrunner
2.6.0
Fast simulator for SBML models
wrappers
C
rrc_macros.h
Go to the documentation of this file.
1
41
#ifndef rrc_macrosH
42
#define rrc_macrosH
43
44
//=================== MACROS ================================
49
#define start_try \
50
try \
51
{
52
57
#define catch_bool_macro \
58
} \
59
catch(exception& ex) \
60
{ \
61
stringstream msg; \
62
msg<<"RoadRunner exception: "
<<ex.what()<<endl; \
63
setError(msg.str()); \
64
return false; \
65
}
66
71
#define catch_ptr_macro \
72
} \
73
catch(exception& ex) \
74
{ \
75
stringstream msg; \
76
msg<<"RoadRunner exception: "
<<ex.what()<<endl; \
77
setError(msg.str()); \
78
return NULL; \
79
}
80
85
#define catch_int_macro \
86
} \
87
catch(exception& ex) \
88
{ \
89
stringstream msg; \
90
msg<<"RoadRunner exception: "
<<ex.what()<<endl; \
91
setError(msg.str()); \
92
return -1; \
93
}
94
99
#define catch_double_macro \
100
} \
101
catch(exception& ex) \
102
{ \
103
stringstream msg; \
104
msg<<"RoadRunner exception: "
<<ex.what()<<endl; \
105
setError(msg.str()); \
106
return -1; \
107
}
108
113
#define catch_void_macro \
114
} \
115
catch(const exception& ex) \
116
{ \
117
stringstream msg; \
118
msg<<"RoadRunner exception: "
<<ex.what()<<endl; \
119
setError(msg.str()); \
120
}
121
122
#endif
123
Generated by
1.9.1