| 1 |
/* corruptCheckTable.h |
| 2 |
*/ |
| 3 |
#ifndef _CORRUPTCHECKTABLE_H |
| 4 |
#define _CORRUPTCHECKTABLE_H |
| 5 |
#include <stdexcept> |
| 6 |
|
| 7 |
namespace osl |
| 8 |
{ |
| 9 |
namespace checkmate |
| 10 |
{ |
| 11 |
class CheckHashRecord; |
| 12 |
struct CorruptCheckTable : std::runtime_error |
| 13 |
{ |
| 14 |
const CheckHashRecord *record; |
| 15 |
#ifdef __GNUC__ |
| 16 |
__attribute__ ((noinline)) |
| 17 |
#endif |
| 18 |
CorruptCheckTable(const CheckHashRecord *r, |
| 19 |
const char *msg="CorruptCheckTable") |
| 20 |
: std::runtime_error(msg), record(r) |
| 21 |
{ |
| 22 |
} |
| 23 |
}; |
| 24 |
} // namespace checkmate |
| 25 |
} // namespace osl |
| 26 |
|
| 27 |
|
| 28 |
#endif /* _CORRUPTCHECKTABLE_H */ |
| 29 |
// ;;; Local Variables: |
| 30 |
// ;;; mode:c++ |
| 31 |
// ;;; c-basic-offset:2 |
| 32 |
// ;;; End: |