mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 14:58:32 +00:00
Replace uses of cassert with Common/Assert.h
This commit is contained in:
parent
a2fa9aab5b
commit
004dfd1586
20 changed files with 66 additions and 63 deletions
|
@ -2,8 +2,9 @@
|
|||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "InputCommon/ControlReference/ExpressionParser.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
|
@ -14,10 +15,10 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "Common/Assert.h"
|
||||
#include "Common/Common.h"
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
#include "InputCommon/ControlReference/ExpressionParser.h"
|
||||
#include "InputCommon/ControlReference/FunctionExpression.h"
|
||||
|
||||
namespace ciface::ExpressionParser
|
||||
|
@ -384,7 +385,7 @@ public:
|
|||
return std::max(std::min(1 - lval, rval), std::min(lval, 1 - rval));
|
||||
}
|
||||
default:
|
||||
assert(false);
|
||||
ASSERT(false);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -823,7 +824,7 @@ private:
|
|||
case TOK_COMMA:
|
||||
return 8;
|
||||
default:
|
||||
assert(false);
|
||||
ASSERT(false);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue