USB: Add assert that GetObjectNoLock is only called from the debugger.

This commit is contained in:
Augustin Cavalier
2021-09-04 13:11:31 -04:00
parent 549e9a3cdc
commit 16414ce406
@@ -223,6 +223,7 @@ Stack::GetObject(usb_id id)
Object *
Stack::GetObjectNoLock(usb_id id) const
{
ASSERT(debug_debugger_running());
if (id >= fObjectMaxCount)
return NULL;
return fObjectArray[id];