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 *
|
Object *
|
||||||
Stack::GetObjectNoLock(usb_id id) const
|
Stack::GetObjectNoLock(usb_id id) const
|
||||||
{
|
{
|
||||||
|
ASSERT(debug_debugger_running());
|
||||||
if (id >= fObjectMaxCount)
|
if (id >= fObjectMaxCount)
|
||||||
return NULL;
|
return NULL;
|
||||||
return fObjectArray[id];
|
return fObjectArray[id];
|
||||||
|
|||||||
Reference in New Issue
Block a user