Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0d2e8b0

Browse files
committed
Update static closure on each invocation
1 parent 00af6c9 commit 0d2e8b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shell/platform/embedder/test_utils/proc_table_replacement.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
([&]() { \
2020
static std::function< \
2121
std::remove_pointer_t<decltype(FlutterEngineProcTable::proc)>> \
22-
closure = mock_impl; \
22+
closure; \
23+
closure = mock_impl; \
2324
static auto non_capturing = [](auto... args) { return closure(args...); }; \
2425
return non_capturing; \
2526
})()

0 commit comments

Comments
 (0)