LibCT 2.0
Defines

Include/Debug.h File Reference

#include "Logger.h"
#include "Exception.h"
#include <assert.h>

Go to the source code of this file.

Defines

#define LIBCTASSERT(x)   LIBCTERROR("ASSERT FAILED:"#x); assert(x)
#define LIBCTERROR(exp)   LibCT::Logger::Instance()->Log(LogLevelCritical, exp)
 Log an error.
#define LIBCTWARNING(exp)   LibCT::Logger::Instance()->Log(LogLevelWarning, exp)
 Log a warning.
#define LIBCTMESSAGE(exp)   LibCT::Logger::Instance()->Log(LogLevelPedantic, exp)
 Log a message.
#define LIBCTEXCEPTION(num, desc, src)
 Throw an exception.

Define Documentation

#define LIBCTASSERT (   x)    LIBCTERROR("ASSERT FAILED:"#x); assert(x)

This file is part of the LibCT project (http://libct.actstudios.co.uk)

Copyright (c) 2010 - 2011 Andrew Thorpe

This software is licensed under the MIT license

For more information, see LICENSE.TXT, or http://www.opensource.org/licenses/mit-license.php

#define LIBCTERROR (   exp)    LibCT::Logger::Instance()->Log(LogLevelCritical, exp)

Log an error.

#define LIBCTEXCEPTION (   num,
  desc,
  src 
)
Value:
throw LibCT::ExceptionFactory::Create( \
        LibCT::ExceptionCodeType<num>(), desc, src, __FILE__, __LINE__ );

Throw an exception.

#define LIBCTMESSAGE (   exp)    LibCT::Logger::Instance()->Log(LogLevelPedantic, exp)

Log a message.

#define LIBCTWARNING (   exp)    LibCT::Logger::Instance()->Log(LogLevelWarning, exp)

Log a warning.