libRoadRunner C API
1.0.0
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
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_void_macro \
100
} \
101
catch(const exception& ex) \
102
{ \
103
stringstream msg; \
104
msg<<"RoadRunner exception: "<<ex.what()<<endl; \
105
setError(msg.str()); \
106
}
107
108
#endif
109
Generated on Wed Dec 18 2013 23:07:20 for libRoadRunner C API by
1.8.5