The assert class. More...

#include "murl_debug_assert.h"

Static Public Member Functions

static Bool Abort (const Char *file, SInt32 line, const Char *condition)
 Write an assert message and abort the program. More...
 

Detailed Description

The assert class.

See MURL_ASSERT() and MURL_VERIFY().

Member Function Documentation

◆ Abort()

static Bool Murl::Debug::Assert::Abort ( const Char file,
SInt32  line,
const Char condition 
)
static

Write an assert message and abort the program.

The message is printed using the Logger::PrintError() method and the program is aborted with System::CLib::Abort().

The message format is "[file name]:[line number]: failed assertion '[condition]'".

Parameters
fileThe file's name string.
lineThe file's line number.
conditionThe string of the assert condition.
Returns
false.

The documentation for this class was generated from the following file:
  • murl_debug_assert.h


Copyright © 2011-2018 Spraylight GmbH.