Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Namespaces | Defines | Functions

C:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vl/checks.hpp File Reference

#include <vl/config.hpp>
#include <cassert>

Namespaces

namespace  vl
 

Visualization Library namespace.


Defines

#define VL_COMPILE_TIME_CHECK(expr)   typedef char compile_time_assert[ (expr) ? 1 : -1 ];
#define VL_TRAP()   {}
#define VL_CHECK(expr)   { if(!(expr)) { ::vl::log_failed_check(#expr,__FILE__,__LINE__); VL_TRAP() } }
#define VL_WARN(expr)   { if(!(expr)) { ::vl::log_failed_check(#expr,__FILE__,__LINE__); } }

Functions

void vl::log_failed_check (const char *, const char *, int)

Define Documentation

#define VL_COMPILE_TIME_CHECK (   expr )    typedef char compile_time_assert[ (expr) ? 1 : -1 ];
#define VL_TRAP (  )    {}
#define VL_CHECK (   expr )    { if(!(expr)) { ::vl::log_failed_check(#expr,__FILE__,__LINE__); VL_TRAP() } }
#define VL_WARN (   expr )    { if(!(expr)) { ::vl::log_failed_check(#expr,__FILE__,__LINE__); } }

Visualization Library v2010.11.1125 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Fri Nov 26 2010 03:13:26.
Permission is granted to use this page to write and publish articles regarding Visualization Library.