Replace assert with DK_ASSERT.
This commit is contained in:
parent
cab7c296f1
commit
8f77af0ac1
5 changed files with 4 additions and 7 deletions
|
@ -4,7 +4,6 @@
|
|||
#include "doorkeeper/primitivetypes.hpp"
|
||||
#include "doorkeeper/implem/vector.hpp"
|
||||
#include <cstdint>
|
||||
#include <cassert>
|
||||
|
||||
namespace dk {
|
||||
template <uint32_t D>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include <vector>
|
||||
#include <type_traits>
|
||||
#include <cstdint>
|
||||
#include <cassert>
|
||||
|
||||
namespace dk {
|
||||
template <typename T, uint32_t D, typename T1>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include "doorkeeper/components/layer.hpp"
|
||||
#include "doorkeeper/components/exception.hpp"
|
||||
#include <vector>
|
||||
#include <cassert>
|
||||
#include <ciso646>
|
||||
#include <memory>
|
||||
#include <cstdint>
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace dk {
|
|||
m_pos(CoordinateScalarType(0)),
|
||||
m_size(parSize)
|
||||
{
|
||||
assert(m_pos <= m_size);
|
||||
DK_ASSERT(m_pos <= m_size);
|
||||
}
|
||||
|
||||
template <uint32_t D>
|
||||
|
@ -12,7 +12,7 @@ namespace dk {
|
|||
m_pos(parValue),
|
||||
m_size(parSize)
|
||||
{
|
||||
assert(m_pos <= m_size);
|
||||
DK_ASSERT(m_pos <= m_size);
|
||||
}
|
||||
|
||||
template <uint32_t D>
|
||||
|
|
|
@ -143,8 +143,8 @@ namespace dk {
|
|||
template <typename T, uint32_t D, typename T1>
|
||||
T& TileIterator<T, D, T1>::dereference() const {
|
||||
const auto index = this->get_current_index();
|
||||
assert(m_data);
|
||||
assert(index < m_data->size());
|
||||
DK_ASSERT(m_data);
|
||||
DK_ASSERT(index < m_data->size());
|
||||
return (*m_data)[index];
|
||||
}
|
||||
} //namespace dk
|
||||
|
|
Loading…
Reference in a new issue