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

Function ErrorAsExceptionNoInline

cpp/src/arrow/type_benchmark.cc:263–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263ARROW_NO_INLINE int32_t ErrorAsExceptionNoInline(int32_t v) {
264 if (ARROW_PREDICT_FALSE(v == 42)) {
265 throw std::invalid_argument("42");
266 }
267 return v + 1;
268}
269
270static void ErrorSchemeNoError(benchmark::State& state) { // NOLINT non-const reference
271 auto integers = RandomIntegers();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected