RRenamed BX_CHECK to BX_ASSERT.

This commit is contained in:
Бранимир Караџић
2020-06-16 10:06:18 -07:00
parent ee78de075c
commit 2cbcb6ea90
42 changed files with 364 additions and 364 deletions

View File

@@ -59,12 +59,12 @@ void TextMetrics::appendText(FontHandle _fontHandle, const char* _string)
}
else
{
BX_CHECK(false, "Glyph not found");
BX_ASSERT(false, "Glyph not found");
}
}
}
BX_CHECK(state == UTF8_ACCEPT, "The string is not well-formed");
BX_ASSERT(state == UTF8_ACCEPT, "The string is not well-formed");
}
TextLineMetrics::TextLineMetrics(const FontInfo& _fontInfo)
@@ -88,7 +88,7 @@ uint32_t TextLineMetrics::getLineCount(const bx::StringView& _str) const
}
}
BX_CHECK(state == UTF8_ACCEPT, "The string is not well-formed");
BX_ASSERT(state == UTF8_ACCEPT, "The string is not well-formed");
return lineCount;
}
@@ -118,7 +118,7 @@ void TextLineMetrics::getSubText(const bx::StringView& _str, uint32_t _firstLine
}
}
BX_CHECK(state == UTF8_ACCEPT, "The string is not well-formed");
BX_ASSERT(state == UTF8_ACCEPT, "The string is not well-formed");
_begin = ptr;
while (ptr != _str.getTerm()
@@ -138,6 +138,6 @@ void TextLineMetrics::getSubText(const bx::StringView& _str, uint32_t _firstLine
}
}
BX_CHECK(state == UTF8_ACCEPT, "The string is not well-formed");
BX_ASSERT(state == UTF8_ACCEPT, "The string is not well-formed");
_end = ptr;
}