MCPcopy Create free account
hub / github.com/apache/arrow / check

Function check

c_glib/arrow-glib/error.cpp:139–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138namespace garrow {
139 gboolean
140 check(GError **error, const arrow::Status &status, const char *context)
141 {
142 if (status.ok()) {
143 return TRUE;
144 } else {
145 g_set_error(error,
146 GARROW_ERROR,
147 garrow_error_from_status(status),
148 "%s: %s",
149 context,
150 status.ToString().c_str());
151 return FALSE;
152 }
153 }
154} // namespace garrow

Callers 1

garrow_error_checkFunction · 0.70

Calls 3

garrow_error_from_statusFunction · 0.85
okMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected