PixelLightAPI  .
Classes | Namespaces | Defines
CompileError.h File Reference
#include "PLCore/PLCore.h"

Go to the source code of this file.

Classes

struct  PLCore::CompileTimeError< bool >
 Compile time error. More...
struct  PLCore::CompileTimeError< false >
 Compile time error. More...

Namespaces

namespace  PLCore

Defines

#define PLCORE_ERROR(error)
 Raise error.
#define PLCORE_CHECK(expr, error)
 Raise error if expression is false.

Define Documentation

#define PLCORE_ERROR (   error)
Value:
{ \
    class ERROR_##error {}; \
    ERROR_##error _error; \
    PLCore::CompileTimeError<false> __error(_error); \
}

Raise error.

Parameters:
[in]errorError message (must NOT be a string but a valid C++ identifier, such as My_Error_Message!)
#define PLCORE_CHECK (   expr,
  error 
)
Value:
{ \
    class ERROR_##error {}; \
    ERROR_##error _error; \
    PLCore::CompileTimeError<(expr)> __error(_error); \
}

Raise error if expression is false.

Parameters:
[in]exprExpression to check
[in]errorError message (must NOT be a string but a valid C++ identifier, such as My_Error_Message!)


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:02
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported