MCPcopy Create free account
hub / github.com/boostorg/leaf / g

Function g

test/on_error_defer_basic_test.cpp:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35};
36
37leaf::error_id g()
38{
39 global = 0;
40 auto load = leaf::on_error( []{++cleanup_count;}, []{ return info<42>{get_global()}; }, []{ return info<-42>{-42}; } );
41 global = 42;
42 return leaf::new_error();
43}
44
45leaf::error_id f()
46{

Callers 1

fFunction · 0.70

Calls 3

on_errorFunction · 0.85
get_globalFunction · 0.85
new_errorFunction · 0.85

Tested by

no test coverage detected