|
Boost : |
From: Dan W. (danw_at_[hidden])
Date: 2004-01-05 04:06:04
//file: verify.hpp
#ifndef VERIFY_HPP
#define VERIFY_HPP
#ifdef _DEBUG
# define verify(x) do{if(!((x)))asm int 3;}while(0)
#else
# define verify(x) (void)(0)
#endif
/*
// Usage example:
#include "verify.hpp"
#include <stdio.h>
char first_char( char const * s )
{
verify( s && ::strlen(s) ); //<-stops right on it ;-)
return s[0];
}
// Cheers!
// dan
*/
#endif
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk