Add programming by contract support

This commit is contained in:
Vinnie Falco
2013-08-12 06:57:29 -07:00
parent bbcb5a7ae5
commit 2fa132f9cc
3 changed files with 109 additions and 9 deletions

View File

@@ -131,6 +131,18 @@
//#define BEAST_BIND_USES_TR1 1
//#define BEAST_BIND_USES_BOOST 1
//------------------------------------------------------------------------------
/** Config: BEAST_DISABLE_CONTRACT_CHECKS
Set this to 1 to prevent check_contract macros from evaluating their
conditions, which might be expensive. meet_contract macros will still
evaluate their conditions since their return values are checked.
*/
#ifndef BEAST_DISABLE_CONTRACT_CHECKS
#define BEAST_DISABLE_CONTRACT_CHECKS 0
#endif
//------------------------------------------------------------------------------
//
// Ripple compilation settings