Rosetta
|
#include <utility/exit.hh>
Go to the source code of this file.
Namespaces | |
utility | |
unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 0. | |
utility::py | |
Macros | |
#define | PyAssert(x, m) { if(!(x)) utility_exit_with_message(m); } |
PyAssert macro. Check if statement is true and call utility_exit otherwise, which in turn will throw boost::python exception that python interpreter will catch. This macro works only when PYROSETTA macro was defined. More... | |
Definition in file PyAssert.hh.
#define PyAssert | ( | x, | |
m | |||
) | { if(!(x)) utility_exit_with_message(m); } |
PyAssert macro. Check if statement is true and call utility_exit otherwise, which in turn will throw boost::python exception that python interpreter will catch. This macro works only when PYROSETTA macro was defined.
Example of usage: PyAssert( (residue_num > 0) && (residue_num<=pose.n_residue()), "Residue not found in pose!" )
Definition at line 29 of file PyAssert.hh.