staticlib_config  1.1.1
 All Classes Namespaces Files Functions Macros
Classes | Namespaces | Macros
assert.hpp File Reference
#include <stdexcept>
#include <string>
#include "staticlib/config/tracemsg.hpp"

Go to the source code of this file.

Classes

class  staticlib::config::assert_exception
 Assert-specific exception. More...

Namespaces

namespace  staticlib
namespace  staticlib::config

Macros

#define slassert(_expr)   if (!(_expr)) throw staticlib::config::assert_exception(TRACEMSG("ASSERTION ERROR:"));
 Assert macro, will throw assert_exception on expression fail.

Macro Definition Documentation

#define slassert (   _expr)    if (!(_expr)) throw staticlib::config::assert_exception(TRACEMSG("ASSERTION ERROR:"));

Assert macro, will throw assert_exception on expression fail.