zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
debug.h File Reference
#include <assert.h>

Go to the source code of this file.

Macros

#define ASSERT(expression)
 
#define Trace(...)   ((void)0)
 
#define UNIMPLEMENTED()
 
#define UNREACHABLE()
 

Macro Definition Documentation

#define ASSERT (   expression)
Value:
do { \
if(!(expression)) \
Trace("Assert failed: %s(%d): "#expression"\n", __FUNCTION__, __LINE__); \
assert(expression); \
} while(0)
#define assert(x)
Definition: SDL_malloc.c:1234
if(!yyg->yy_init)
#define Trace(...)
Definition: debug.h:31

Definition at line 36 of file debug.h.

Referenced by sh::OutputHLSL::addConstructor(), TParseContext::areAllChildConst(), VariablePacker::CheckVariablesWithinPackingLimits(), ForLoopUnroll::FillLoopIndexInfo(), getBuiltInVariableInfo(), BuiltInFunctionEmulator::GetEmulatedFunctionName(), VariablePacker::GetNumComponentsPerRow(), VariablePacker::GetNumRows(), getUserDefinedVariableInfo(), getVariableInfo(), MapLongVariableNames::MapLongVariableNames(), TCompiler::mapLongVariableNames(), BuiltInFunctionEmulator::MarkBuiltInFunctionsForEmulation(), ForLoopUnroll::MarkForLoopsWithIntegerIndicesForUnrolling(), ArrayBoundsClamper::MarkIndirectArrayBoundsForClamping(), OS_GetTLSValue(), sh::OutputHLSL::registerString(), LongNameMap::Release(), sh::OutputHLSL::samplerRegister(), ForLoopUnroll::SatisfiesLoopCondition(), ShGetNameHashingEntry(), ForLoopUnroll::Step(), sh::OutputHLSL::uniformRegister(), CollectAttribsUniforms::visitAggregate(), TOutputGLSLBase::visitAggregate(), sh::OutputHLSL::visitAggregate(), TOutputGLSLBase::visitBinary(), sh::OutputHLSL::visitBinary(), TOutputGLSLBase::visitLoop(), MapLongVariableNames::visitSymbol(), TOutputGLSLBase::writeConstantUnion(), TOutputGLSLBase::writeFunctionParameters(), and TCompiler::~TCompiler().

#define Trace (   ...)    ((void)0)

Definition at line 31 of file debug.h.

Referenced by gen_bitlen(), and inflate().

#define UNIMPLEMENTED ( )
Value:
do { \
Trace("Unimplemented invoked: %s(%d)\n", __FUNCTION__, __LINE__); \
assert(false); \
} while(0)
#define assert(x)
Definition: SDL_malloc.c:1234
#define Trace(...)
Definition: debug.h:31

Definition at line 42 of file debug.h.

Referenced by getOperatorString(), sh::OutputHLSL::handleExcessiveLoop(), and TOutputGLSLBase::visitBinary().