MCPcopy Create free account
hub / github.com/BruceDevices/firmware / AutoCleanup

Method AutoCleanup

src/modules/ble/BLE_Suite.cpp:91–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89//=============================================================================
90
91AutoCleanup::AutoCleanup(std::function<void()> func, bool enable) : cleanupFunc(func), enabled(enable) {}
92
93AutoCleanup::~AutoCleanup() {
94 if (enabled && cleanupFunc) { cleanupFunc(); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected