-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapi__status_8h.html
308 lines (298 loc) · 23.5 KB
/
api__status_8h.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Vowpal Wabbit: /nix/store/2saqbz278bj3pvhbfxlcc50cjbvs3h0h-source/vowpalwabbit/core/include/vw/core/api_status.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Vowpal Wabbit
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_23e69c20c74a4591a9cfc65aaff8f3d1.html">vowpalwabbit</a></li><li class="navelem"><a class="el" href="dir_ac6a61a109948206d2936c045f349651.html">core</a></li><li class="navelem"><a class="el" href="dir_a3788c0ba6eb014618872c7f6f297f06.html">include</a></li><li class="navelem"><a class="el" href="dir_9438b6851474f9adbcfe42d9cedffbb5.html">vw</a></li><li class="navelem"><a class="el" href="dir_b7dc50cb86678a36078b49ada1830961.html">core</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#namespaces">Namespaces</a> |
<a href="#define-members">Macros</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">api_status.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <sstream></code><br />
<code>#include <string></code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classVW_1_1experimental_1_1api__status.html">VW::experimental::api_status</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Report status of all API calls. <a href="classVW_1_1experimental_1_1api__status.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classVW_1_1experimental_1_1status__builder.html">VW::experimental::status_builder</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Helper class used in report_error template funcstions to return status from API calls. <a href="classVW_1_1experimental_1_1status__builder.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceVW"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceVW.html">VW</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:namespaceVW_1_1experimental"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceVW_1_1experimental.html">VW::experimental</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a0b91c33a87b1b18f0af28f48b17e8706"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="api__status_8h.html#a0b91c33a87b1b18f0af28f48b17e8706">RETURN_ERROR</a>(status, code, ...)</td></tr>
<tr class="memdesc:a0b91c33a87b1b18f0af28f48b17e8706"><td class="mdescLeft"> </td><td class="mdescRight">Error reporting macro for just returning an error code. <a href="api__status_8h.html#a0b91c33a87b1b18f0af28f48b17e8706">More...</a><br /></td></tr>
<tr class="separator:a0b91c33a87b1b18f0af28f48b17e8706"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a95390fa54d352ab15671f0171f43cd32"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="api__status_8h.html#a95390fa54d352ab15671f0171f43cd32">RETURN_ERROR_ARG</a>(status, code, ...)</td></tr>
<tr class="memdesc:a95390fa54d352ab15671f0171f43cd32"><td class="mdescLeft"> </td><td class="mdescRight">Error reporting macro that takes a list of parameters. <a href="api__status_8h.html#a95390fa54d352ab15671f0171f43cd32">More...</a><br /></td></tr>
<tr class="separator:a95390fa54d352ab15671f0171f43cd32"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a38319a82da85c3e294c3e6d344817954"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="api__status_8h.html#a38319a82da85c3e294c3e6d344817954">RETURN_ERROR_LS</a>(status, code)</td></tr>
<tr class="memdesc:a38319a82da85c3e294c3e6d344817954"><td class="mdescLeft"> </td><td class="mdescRight">Error reporting macro used with left shift operator. <a href="api__status_8h.html#a38319a82da85c3e294c3e6d344817954">More...</a><br /></td></tr>
<tr class="separator:a38319a82da85c3e294c3e6d344817954"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a11385635c23358843d733b2e6f3241c4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="api__status_8h.html#a11385635c23358843d733b2e6f3241c4">RETURN_IF_FAIL</a>(x)</td></tr>
<tr class="memdesc:a11385635c23358843d733b2e6f3241c4"><td class="mdescLeft"> </td><td class="mdescRight">Error reporting macro to test and return on error. <a href="api__status_8h.html#a11385635c23358843d733b2e6f3241c4">More...</a><br /></td></tr>
<tr class="separator:a11385635c23358843d733b2e6f3241c4"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a7a4a5996e6c202e5414c5ce770231352"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceVW_1_1experimental.html#a7a4a5996e6c202e5414c5ce770231352">VW::experimental::i_trace</a> = void</td></tr>
<tr class="separator:a7a4a5996e6c202e5414c5ce770231352"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aa46ec79d56f4d3c0e9e6527b6326fbd7"><td class="memTemplParams" colspan="2">template<typename Last > </td></tr>
<tr class="memitem:aa46ec79d56f4d3c0e9e6527b6326fbd7"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceVW_1_1experimental.html#aa46ec79d56f4d3c0e9e6527b6326fbd7">VW::experimental::report_error</a> (std::ostringstream &os, const Last &last)</td></tr>
<tr class="memdesc:aa46ec79d56f4d3c0e9e6527b6326fbd7"><td class="mdescLeft"> </td><td class="mdescRight">Ends recursion of report_error variadic template with the Last argument. <a href="namespaceVW_1_1experimental.html#aa46ec79d56f4d3c0e9e6527b6326fbd7">More...</a><br /></td></tr>
<tr class="separator:aa46ec79d56f4d3c0e9e6527b6326fbd7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1eb37d8ebb3c132280c6b4bf93f4171b"><td class="memTemplParams" colspan="2">template<typename First , typename... Rest> </td></tr>
<tr class="memitem:a1eb37d8ebb3c132280c6b4bf93f4171b"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceVW_1_1experimental.html#a1eb37d8ebb3c132280c6b4bf93f4171b">VW::experimental::report_error</a> (std::ostringstream &os, const First &first, const Rest &... rest)</td></tr>
<tr class="memdesc:a1eb37d8ebb3c132280c6b4bf93f4171b"><td class="mdescLeft"> </td><td class="mdescRight">Begins recursion of report_error variadic template with ostringstream to serialize error information. <a href="namespaceVW_1_1experimental.html#a1eb37d8ebb3c132280c6b4bf93f4171b">More...</a><br /></td></tr>
<tr class="separator:a1eb37d8ebb3c132280c6b4bf93f4171b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab0247d1a7a281031e680d2a5aa4111b4"><td class="memTemplParams" colspan="2">template<typename... All> </td></tr>
<tr class="memitem:ab0247d1a7a281031e680d2a5aa4111b4"><td class="memTemplItemLeft" align="right" valign="top">int </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceVW_1_1experimental.html#ab0247d1a7a281031e680d2a5aa4111b4">VW::experimental::report_error</a> (api_status *status, int scode, const All &... all)</td></tr>
<tr class="memdesc:ab0247d1a7a281031e680d2a5aa4111b4"><td class="mdescLeft"> </td><td class="mdescRight">The main report_error template used to serialize error into <a class="el" href="classVW_1_1experimental_1_1api__status.html" title="Report status of all API calls.">api_status</a> The method most end users will use with a status code and a number of objects to be serialised into an <a class="el" href="classVW_1_1experimental_1_1api__status.html" title="Report status of all API calls.">api_status</a>. <a href="namespaceVW_1_1experimental.html#ab0247d1a7a281031e680d2a5aa4111b4">More...</a><br /></td></tr>
<tr class="separator:ab0247d1a7a281031e680d2a5aa4111b4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8fd842cad672166b31e4c293c798154f"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
<tr class="memitem:a8fd842cad672166b31e4c293c798154f"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classVW_1_1experimental_1_1status__builder.html">VW::experimental::status_builder</a> & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceVW_1_1experimental.html#a8fd842cad672166b31e4c293c798154f">VW::experimental::operator<<</a> (<a class="el" href="classVW_1_1experimental_1_1status__builder.html">VW::experimental::status_builder</a> &sb, const T &val)</td></tr>
<tr class="memdesc:a8fd842cad672166b31e4c293c798154f"><td class="mdescLeft"> </td><td class="mdescRight">left shift operator to serialize types into stringstream held in <a class="el" href="classVW_1_1experimental_1_1status__builder.html" title="Helper class used in report_error template funcstions to return status from API calls.">status_builder</a> <a href="namespaceVW_1_1experimental.html#a8fd842cad672166b31e4c293c798154f">More...</a><br /></td></tr>
<tr class="separator:a8fd842cad672166b31e4c293c798154f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a20facf56cc9512534432585ef810022c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceVW_1_1experimental.html#a20facf56cc9512534432585ef810022c">VW::experimental::report_error</a> (status_builder &sb)</td></tr>
<tr class="memdesc:a20facf56cc9512534432585ef810022c"><td class="mdescLeft"> </td><td class="mdescRight">Terminates recursion of report_error. <a href="namespaceVW_1_1experimental.html#a20facf56cc9512534432585ef810022c">More...</a><br /></td></tr>
<tr class="separator:a20facf56cc9512534432585ef810022c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9f8e36723d223d2e8aceea899e10d72f"><td class="memTemplParams" colspan="2">template<typename Last > </td></tr>
<tr class="memitem:a9f8e36723d223d2e8aceea899e10d72f"><td class="memTemplItemLeft" align="right" valign="top">int </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceVW_1_1experimental.html#a9f8e36723d223d2e8aceea899e10d72f">VW::experimental::report_error</a> (status_builder &sb, const Last &last)</td></tr>
<tr class="memdesc:a9f8e36723d223d2e8aceea899e10d72f"><td class="mdescLeft"> </td><td class="mdescRight">report_error that takes the final paramter <a href="namespaceVW_1_1experimental.html#a9f8e36723d223d2e8aceea899e10d72f">More...</a><br /></td></tr>
<tr class="separator:a9f8e36723d223d2e8aceea899e10d72f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:add028d1b214cc8610f9b7ffbd9a9b7de"><td class="memTemplParams" colspan="2">template<typename First , typename... Rest> </td></tr>
<tr class="memitem:add028d1b214cc8610f9b7ffbd9a9b7de"><td class="memTemplItemLeft" align="right" valign="top">int </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceVW_1_1experimental.html#add028d1b214cc8610f9b7ffbd9a9b7de">VW::experimental::report_error</a> (status_builder &sb, const First &first, const Rest &... rest)</td></tr>
<tr class="memdesc:add028d1b214cc8610f9b7ffbd9a9b7de"><td class="mdescLeft"> </td><td class="mdescRight">variadic template report_error that takes a list of parameters <a href="namespaceVW_1_1experimental.html#add028d1b214cc8610f9b7ffbd9a9b7de">More...</a><br /></td></tr>
<tr class="separator:add028d1b214cc8610f9b7ffbd9a9b7de"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a0b91c33a87b1b18f0af28f48b17e8706" name="a0b91c33a87b1b18f0af28f48b17e8706"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b91c33a87b1b18f0af28f48b17e8706">◆ </a></span>RETURN_ERROR</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RETURN_ERROR</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">status, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname">code, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>...</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"> <span class="keywordflow">do</span> { \</div>
<div class="line"> if (status != <span class="keyword">nullptr</span>) \</div>
<div class="line"> { \</div>
<div class="line"> <a class="code hl_class" href="classVW_1_1experimental_1_1status__builder.html">VW::experimental::status_builder</a> sb(<span class="keyword">nullptr</span>, status, VW::experimental::error_code::code); \</div>
<div class="line"> sb << VW::experimental::error_code::code##_s; \</div>
<div class="line"> <span class="keywordflow">return</span> report_error(sb); \</div>
<div class="line"> } \</div>
<div class="line"> <span class="keywordflow">return</span> VW::experimental::error_code::code; \</div>
<div class="line"> } <span class="keywordflow">while</span> (0);</div>
<div class="ttc" id="aclassVW_1_1experimental_1_1status__builder_html"><div class="ttname"><a href="classVW_1_1experimental_1_1status__builder.html">VW::experimental::status_builder</a></div><div class="ttdoc">Helper class used in report_error template funcstions to return status from API calls.</div><div class="ttdef"><b>Definition:</b> api_status.h:69</div></div>
</div><!-- fragment -->
<p>Error reporting macro for just returning an error code. </p>
</div>
</div>
<a id="a95390fa54d352ab15671f0171f43cd32" name="a95390fa54d352ab15671f0171f43cd32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95390fa54d352ab15671f0171f43cd32">◆ </a></span>RETURN_ERROR_ARG</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RETURN_ERROR_ARG</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">status, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname">code, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>...</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"> <span class="keywordflow">do</span> { \</div>
<div class="line"> if (status != <span class="keyword">nullptr</span>) \</div>
<div class="line"> { \</div>
<div class="line"> <a class="code hl_class" href="classVW_1_1experimental_1_1status__builder.html">VW::experimental::status_builder</a> sb(<span class="keyword">nullptr</span>, status, VW::experimental::error_code::code); \</div>
<div class="line"> sb << VW::experimental::error_code::code##_s; \</div>
<div class="line"> <span class="keywordflow">return</span> report_error(sb, __VA_ARGS__); \</div>
<div class="line"> } \</div>
<div class="line"> <span class="keywordflow">return</span> VW::experimental::error_code::code; \</div>
<div class="line"> } <span class="keywordflow">while</span> (0);</div>
</div><!-- fragment -->
<p>Error reporting macro that takes a list of parameters. </p>
</div>
</div>
<a id="a38319a82da85c3e294c3e6d344817954" name="a38319a82da85c3e294c3e6d344817954"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38319a82da85c3e294c3e6d344817954">◆ </a></span>RETURN_ERROR_LS</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RETURN_ERROR_LS</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">status, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname">code </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"> <a class="code hl_class" href="classVW_1_1experimental_1_1status__builder.html">VW::experimental::status_builder</a> sb(<span class="keyword">nullptr</span>, status, VW::experimental::error_code::code); \</div>
<div class="line"> <span class="keywordflow">return</span> sb << VW::experimental::error_code::code##_s</div>
</div><!-- fragment -->
<p>Error reporting macro used with left shift operator. </p>
</div>
</div>
<a id="a11385635c23358843d733b2e6f3241c4" name="a11385635c23358843d733b2e6f3241c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11385635c23358843d733b2e6f3241c4">◆ </a></span>RETURN_IF_FAIL</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RETURN_IF_FAIL</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">x</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"> <span class="keywordflow">do</span> { \</div>
<div class="line"> <span class="keywordtype">int</span> retval__LINE__ = (x); \</div>
<div class="line"> if (retval__LINE__ != 0) { <span class="keywordflow">return</span> retval__LINE__; } \</div>
<div class="line"> } <span class="keywordflow">while</span> (0)</div>
</div><!-- fragment -->
<p>Error reporting macro to test and return on error. </p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>