mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
AK: Always inline some Checked methods
Once again, we need to hint the compiler that it should inline the function, and then it is able to eliminate the assertion.
This commit is contained in:
parent
75e42648e1
commit
c3db694d9b
1 changed files with 2 additions and 2 deletions
|
@ -166,13 +166,13 @@ public:
|
|||
return m_overflow;
|
||||
}
|
||||
|
||||
bool operator!() const
|
||||
ALWAYS_INLINE bool operator!() const
|
||||
{
|
||||
ASSERT(!m_overflow);
|
||||
return !m_value;
|
||||
}
|
||||
|
||||
T value() const
|
||||
ALWAYS_INLINE T value() const
|
||||
{
|
||||
ASSERT(!m_overflow);
|
||||
return m_value;
|
||||
|
|
Loading…
Add table
Reference in a new issue