Rosetta 3.3
Namespaces | Defines
src/utility/PyAssert.hh File Reference
#include <utility/exit.hh>

Namespaces

namespace  utility
 

unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 1.


Defines

#define PyAssert(x, m)
 PyAssert macro. Check if statemnt is true and call utility_exit otherwise, which in turn will trow boost::python exception that python interpreter will catch. This macro works only when PY_ROSETTA macro was defined.

Detailed Description

Author:
Sergey Lyskov
Note:
Defining special assert version for PyRosetta build. It will allow to perform some additional verification for PyRosetta build.

Define Documentation

#define PyAssert (   x,
 
)

PyAssert macro. Check if statemnt is true and call utility_exit otherwise, which in turn will trow boost::python exception that python interpreter will catch. This macro works only when PY_ROSETTA macro was defined.

Example of usage: PyAssert( (residue_num > 0) && (residue_num<=pose.n_residue()) )

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines