Various utilities for debugging.
More...
#include <iostream>
#include <sstream>
#include "linbox/util/error.h"
#include <vector>
#include <list>
#include <givaro/givprint.h>
|
| namespace | LinBox |
| | Namespace in which all linbox code resides.
|
| |
|
| #define | linbox_check(check) |
| | Check an assertion (à la std::assert).
|
| |
Various utilities for debugging.
- Todo:
- we should put vector printing elsewhere.
◆ 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
-
| check | assertion to be checked. |