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

Function ErrorAsExceptionNoInline

cpp/src/arrow/type_benchmark.cc:249–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249ARROW_NO_INLINE int32_t ErrorAsExceptionNoInline(int32_t v) {
250 if (ARROW_PREDICT_FALSE(v == 42)) {
251 throw std::invalid_argument("42");
252 }
253 return v + 1;
254}
255
256static void ErrorSchemeNoError(benchmark::State& state) { // NOLINT non-const reference
257 auto integers = RandomIntegers();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected