check.hh File Reference

#include <lestes/std/lassert.hh>

Include dependency graph for check.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define checked(x)   (lassert2((x),"Checked pointer is NULL."),(x))
 Check value for non-NULL-ness and return it.
#define checked_ucn_string(x)   (lassert2( !((x).empty()), "Checked ucn_string is empty." ),(x))
 Checks given string for non-emptiness and return it.
#define one_shot_unchecked(ward, expr)
 helper macro for specialized checking, which is permisive for the first time only


Detailed Description

The checked() macro and similar ones.
Author:
Rudo

Define Documentation

#define checked (  )     (lassert2((x),"Checked pointer is NULL."),(x))

Check value for non-NULL-ness and return it.

#define checked_ucn_string (  )     (lassert2( !((x).empty()), "Checked ucn_string is empty." ),(x))

Checks given string for non-emptiness and return it.

Author:
Rudo

#define one_shot_unchecked ( ward,
expr   ) 

Value:

(lassert2(!(ward) || (expr), \
                "Checked pointer is NULL, and this is not the first attempt " \
                "to set the checked value."),\
         ((ward) = true), \
         (expr))
helper macro for specialized checking, which is permisive for the first time only

Parameters:
ward The name of the protective boolean variable.
expr The expression to check.
Author:
TMA


Generated on Mon Feb 12 18:38:44 2007 for lestes by doxygen 1.5.1-20070107