linbox
Data Structures | Namespaces | Macros
debug.h File Reference

Various utilities for debugging. More...

#include <iostream>
#include <sstream>
#include "linbox/util/error.h"
#include <vector>
#include <list>
#include <givaro/givprint.h>
+ Include dependency graph for debug.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

class  PreconditionFailed
 A precondition failed. More...
 
class  Exception
 This is the exception class in LinBox. More...
 
class  algoException
 Algorithmic exception. More...
 
class  NotImplementedYetException
 Not implemented yet. More...
 
class  IrrecuperableException
 Something bad an unexpected happened. More...
 
class  BadInputException
 The input is not as expected. More...
 

Namespaces

 LinBox
 Namespace in which all linbox code resides.
 

Macros

#define linbox_check(check)
 Check an assertion (à la std::assert). More...
 

Detailed Description

Various utilities for debugging.

Todo:
we should put vector printing elsewhere.

Macro Definition Documentation

◆ linbox_check

#define linbox_check (   check)
Value:
if (!(check)) \
throw ::LinBox::PreconditionFailed (__FILE__, __LINE__, #check);

Check an assertion (à la std::assert).

If in DEBUG mode, throws a PreconditionFailed exception. In REALEASE mode, nothing is checked.

Parameters
checkassertion to be checked.