Tellurium Plugin C API
1.0.0
Plugin Framework for Tellurium
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Macros
Groups
Pages
tel_macros.h
Go to the documentation of this file.
1
41
#ifndef tel_macrosH
42
#define tel_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<<"Tellurium exception: "<<ex.what(); \
63
tpSetError(msg.str()); \
64
return false; \
65
}
66
71
#define catch_ptr_macro \
72
} \
73
catch(exception& ex) \
74
{ \
75
stringstream msg; \
76
msg<<"Tellurium exception: "<<ex.what(); \
77
tpSetError(msg.str()); \
78
return NULL; \
79
}
80
85
#define catch_int_macro \
86
} \
87
catch(exception& ex) \
88
{ \
89
stringstream msg; \
90
msg<<"Tellurium exception: "<<ex.what(); \
91
tpSetError(msg.str()); \
92
return -1; \
93
}
94
99
#define catch_void_macro \
100
} \
101
catch(const exception& ex) \
102
{ \
103
stringstream msg; \
104
msg<<"Tellurium exception: "<<ex.what(); \
105
tpSetError(msg.str()); \
106
}
107
108
#endif
109
Generated on Mon Mar 31 2014 14:36:32 for Tellurium Plugin C API by
1.8.4