YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
ISO C 断言/调试跟踪扩展。 更多...
命名空间 | |
ystdex | |
宏定义 | |
#define | yconstraint assert |
约束:接口语义。 更多... | |
#define | yassume assert |
假定:环境语义。 更多... | |
#define | YAssert(_expr, _msg) ystdex::yassert(_expr, #_expr, __FILE__, __LINE__, _msg) |
#define | YAssertNonnull(_expr) YAssert(bool(_expr), "Null pointer found.") |
函数 | |
void | ystdex::yassert (bool, const char *, const char *, int, const char *) |
YBase 默认断言函数。 更多... | |
#define | YTrace(_stream, _lv, _t, _msg,...) ystdex::ytrace(_stream, _lv, _t, __FILE__, __LINE__, _msg, __VA_ARGS__) |
YCLib 扩展调试跟踪。 更多... | |
void | ystdex::ytrace (std::FILE *, std::uint8_t, std::uint8_t, const char *, int, const char *,...) |
YCLib 调试跟踪函数。 更多... | |
ISO C 断言/调试跟踪扩展。
在文件 cassert.h 中定义.
#define YAssert | ( | _expr, | |
_msg | |||
) | ystdex::yassert(_expr, #_expr, __FILE__, __LINE__, _msg) |
参考自 YSLib::Activate(), YSLib::UI::AScrollBar::AScrollBar(), YSLib::UI::Caret::Check(), YSLib::Drawing::CopyBuffer(), YSLib::Text::CopySliceFrom(), YReader::DeclResource(), NPL::Decompose(), YSLib::GMRUCache< YSLib::Drawing::Typeface::BitmapKey, YSLib::Drawing::Typeface::SmallBitmapData, YSLib::Drawing::Typeface::BitmapKeyHash >::DefDeMoveCtor(), YSLib::Drawing::Rect::Diminish(), YSLib::UI::DoRequestFocus(), YSLib::Drawing::DrawHLineSeg(), YSLib::Drawing::DrawLineSeg(), YSLib::Drawing::DrawPoint(), YSLib::Drawing::DrawPolygon(), YSLib::Drawing::DrawVLineSeg(), YSLib::GMRUCache< YSLib::Drawing::Typeface::BitmapKey, YSLib::Drawing::Typeface::SmallBitmapData, YSLib::Drawing::Typeface::BitmapKeyHash >::emplace(), YSLib::IO::EnsureDirectory(), platform_ex::Windows::err(), YSLib::DS::UI::DualScreenReader::Execute(), YSLib::Drawing::FetchResizedBottomMargin(), YSLib::Drawing::FetchResizedLineN(), YSLib::FetchShell(), YSLib::Drawing::FetchStringOffsets(), YSLib::Drawing::FetchStringWidth(), YSLib::UI::FetchVisualStyleNames(), YSLib::Drawing::FillRect(), YSLib::Text::TextFileBuffer::GetIterator(), YSLib::Text::TextFileBuffer::GetPosition(), YSLib::GUIApplication::GUIApplication(), NPL::LexicalAnalyzer::HandleEscape(), YSLib::UI::HorizontalTrack::HorizontalTrack(), platform_ex::Windows::HostWindow::HostWindow(), YSLib::Drawing::HSLToColor(), YSLib::IsInClosedInterval(), YSLib::IsInInterval(), YSLib::IsInOpenInterval(), YSLib::UI::Menu::IsItemEnabled(), YSLib::Devices::KeyInputDevice::KeyInputDevice(), YSLib::DS::UI::DualScreenReader::Locate(), YSLib::Drawing::MultiBitmapData::LockPage(), YSLib::DS::UI::DualScreenReader::MoveUpForLastLine(), YSLib::Application::OnGotMessage(), YSLib::Drawing::SequenceTransformer::operator()(), YSLib::Drawing::VerticalLineTransfomer::operator()(), YSLib::Text::TextFileBuffer::iterator::operator*(), YSLib::Text::TextFileBuffer::iterator::operator++(), YSLib::Text::TextFileBuffer::iterator::operator--(), YSLib::UI::MLinearUIContainer::operator-=(), YSLib::File::operator<<(), YSLib::Text::operator==(), YSLib::File::operator>>(), YSLib::UI::Renderer::Paint(), YSLib::UI::BufferedRenderer::Paint(), YSLib::Drawing::PlotHLineSeg(), YSLib::Drawing::PlotVLineSeg(), YSLib::Drawing::PutPixel(), YSLib::Timers::Timer::RefreshDelta(), YSLib::Timers::Timer::RefreshRemainder(), YSLib::GHandlerRegisterBase< GWidgetInserterRegister< _tParams...>, string, GWidgetInserter< _tParams...> >::Register(), YSLib::GHandlerRegisterBase< GWidgetInserterRegister< _tParams...>, string, GWidgetInserter< _tParams...> >::RegisterTail(), YSLib::Drawing::RenderChar(), YSLib::Drawing::RenderCharAlpha(), YSLib::UI::GUIState::ResponseCursorBase(), YSLib::UI::GUIState::ResponseKeyBase(), YSLib::RestrictInClosedInterval(), YSLib::RestrictInInterval(), YSLib::RestrictUnsigned(), YSLib::Drawing::RollColor(), YSLib::DS::UI::DualScreenReader::ScrollByPixel(), YSLib::UI::Menu::SetItemEnabled(), YSLib::Drawing::CompactPixmap::SetSize(), YSLib::SwitchAddedInterval(), YSLib::SwitchInterval(), YSLib::UI::TabControl::SwitchPage(), YSLib::Text::TextFileBuffer::TextFileBuffer(), YSLib::UI::VerticalTrack::VerticalTrack(), YSLib::Application::~Application(), platform::DirectorySession::~DirectorySession() , 以及 YSLib::Drawing::Typeface::~Typeface().
#define YAssertNonnull | ( | _expr | ) | YAssert(bool(_expr), "Null pointer found.") |
参考自 YSLib::UI::AccessWidget(), YSLib::Drawing::NativeFontSize::Activate(), YSLib::UI::AnimateConnection(), platform_ex::ClearKeyStates(), YSLib::Drawing::CopyBuffer(), platform::Logger::DefaultSendLog(), platform_ex::Android::ScreenBuffer::GetBufferPtr(), YSLib::Devices::Screen::GetCheckedBufferPtr(), platform_ex::Android::ScreenBuffer::GetContext(), platform_ex::Android::ScreenBuffer::GetSize(), platform_ex::Android::ScreenBuffer::GetStride(), YSLib::GEventPointerWrapper< _tBaseArgs >::GEventPointerWrapper(), platform::LogWithSource(), YSLib::UI::MoveToBottom(), YSLib::UI::MoveToLeft(), YSLib::UI::MoveToRight(), YSLib::UI::MoveToTop(), YSLib::Text::TextFileBuffer::iterator::operator*(), YSLib::Drawing::HMultiBitmap::iterator::operator*(), YSLib::Text::TextFileBuffer::iterator::operator++(), YSLib::Drawing::HMultiBitmap::iterator::operator++(), YSLib::UI::MenuHost::operator+=(), YSLib::UI::MUIContainer::PaintVisibleChildren(), YSLib::UI::TabBar::PerformLayout(), YSLib::Drawing::PlotHLineSeg(), YSLib::Drawing::PlotVLineSeg(), YSLib::Drawing::PutPixel(), YSLib::UI::MUIContainer::QueryZ(), platform_ex::Android::ScreenBuffer::Resize(), YSLib::UI::GUIState::ResponseCursor(), YSLib::UI::GUIState::ResponseKey(), YSLib::DS::ShlDS::ShlDS(), platform_ex::Android::ScreenBuffer::swap(), YSLib::UI::TabControl::SwitchPage(), platform_ex::Android::ScreenBuffer::UpdateFrom(), platform_ex::Windows::ScreenBuffer::UpdateFrom() , 以及 YSLib::Drawing::Typeface::~Typeface().
#define YTrace | ( | _stream, | |
_lv, | |||
_t, | |||
_msg, | |||
... | |||
) | ystdex::ytrace(_stream, _lv, _t, __FILE__, __LINE__, _msg, __VA_ARGS__) |