YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
cassert.h 文件参考

ISO C 断言/调试跟踪扩展。 更多...

#include "../ydef.h"
#include <cassert>
#include <cstdio>
cassert.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

命名空间

 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 断言/调试跟踪扩展。

版本
r116
作者
FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
build 432
创建时间:
2013-07-27 04:11:53 +0800
修改时间:
2014-05-24 17:50 +0800
文本编码:
UTF-8
模块名称:
YStandardEx::CAssert

在文件 cassert.h 中定义.

宏定义说明

#define YAssert (   _expr,
  _msg 
)    ystdex::yassert(_expr, #_expr, __FILE__, __LINE__, _msg)

在文件 cassert.h73 行定义.

参考自 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.")
自从
build 495

在文件 cassert.h81 行定义.

参考自 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__)

YCLib 扩展调试跟踪。

注解
使用自定义的调试跟踪级别。
参见
ytrace

在文件 cassert.h101 行定义.