Searched refs:scope_exit (Results 1 - 1 of 1) sorted by relevance

/gem5/ext/pybind11/tests/test_embed/
H A Dtest_interpreter.cpp238 struct scope_exit { struct
240 explicit scope_exit(std::function<void()> f) noexcept : f_(std::move(f)) {}
241 ~scope_exit() { if (f_) f_(); }
252 scope_exit reset_dont_write_bytecode([&]() {
265 scope_exit delete_module_file([&]() {

Completed in 5 milliseconds