USB: Add assert that GetObjectNoLock is only called from the debugger.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user