Bug 1664844 - Add DebugOnly::inspect member function. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D90133
This commit is contained in:
@@ -71,6 +71,8 @@ class MOZ_STACK_CLASS DebugOnly {
|
||||
T& operator->() { return value; }
|
||||
const T& operator->() const { return value; }
|
||||
|
||||
const T& inspect() const { return value; }
|
||||
|
||||
#else
|
||||
DebugOnly() = default;
|
||||
MOZ_IMPLICIT DebugOnly(const T&) {}
|
||||
|
||||
Reference in New Issue
Block a user