ALox  V. 2402 R. 0
Home ALox for C++ ALox for C# ALox for Java Download
Public Static Methods | List of all members
ALIB_DBG Class Reference

Class Description


This class contains static debug shortcuts to to methods of class Report. All invocations of the static methods get "pruned" (removed) from release compilations if used with ALox default configuration of Proguard. See ALox documentation on project setup and pruning for more information.

Public Static Methods

static void ASSERT (boolean cond)
 
static void ASSERT_ERROR (boolean cond, Object... msg)
 
static void ASSERT_WARNING (boolean cond, Object... msg)
 
static void ERROR (Object... msg)
 
static void REPORT (int type, Object... msg)
 
static void WARNING (Object... msg)
 

Member Function Documentation

◆ ASSERT()

static void ASSERT ( boolean  cond)
static

If given condition is false, method Report.doReport gets invoked with the standard message "Internal Error". This method is pruned from release code.

Parameters
condThe condition that has to be met to prevent ReportWriter call.

◆ ASSERT_ERROR()

static void ASSERT_ERROR ( boolean  cond,
Object...  msg 
)
static

If given condition is false, method Report.doReport gets invoked with the given message. This method is pruned from release code.

Parameters
condThe condition that has to be met to prevent ReportWriter call.
msgThe msg to be passed to the ReportWriter.

◆ ASSERT_WARNING()

static void ASSERT_WARNING ( boolean  cond,
Object...  msg 
)
static

If given condition is false, method Report.doReport gets invoked with the given message. This method is pruned from release code.

Parameters
condThe condition that has to be met to prevent ReportWriter call.
msgThe msg to be passed to the ReportWriter.

◆ ERROR()

static void ERROR ( Object...  msg)
static

Invokes Report.doReport. This method is pruned from release code.

Parameters
msgThe msg to be passed to the ReportWriter.

◆ REPORT()

static void REPORT ( int  type,
Object...  msg 
)
static

Invokes Report.doReport. This method is pruned from release code.

Parameters
typeThe msg type.
msgThe msg to be passed to the ReportWriter.

◆ WARNING()

static void WARNING ( Object...  msg)
static

Invokes Report.doReport. This method is pruned from release code.

Parameters
msgThe msg to be passed to the ReportWriter.

The documentation for this class was generated from the following file: