Rosetta
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
utility
assert.hh
Go to the documentation of this file.
1
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2
// vi: set ts=2 noet:
3
//
4
// (c) Copyright Rosetta Commons Member Institutions.
5
// (c) This file is part of the Rosetta software suite and is made available under license.
6
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9
10
/// @file utility/assert.hh
11
/// @author Sergey Lyskov
12
///
13
/// @note Some assert's related macros
14
15
16
#ifndef INCLUDED_utility_assert_hh
17
#define INCLUDED_utility_assert_hh
18
19
#include <
utility/backtrace.hh
>
// for debug_assert()
20
21
/// @brief Macro wrapper for paramters that used only indebug_assert(...) statments.
22
/// Intended to supress 'unused parameter' warning.
23
/// Ported from Rosetta++::Pack.cc
24
///
25
/// Example of usage: ResfileReader::read_aa_list(utility::vector1< std::string > const & ASSERT_ONLY(tokens) ) { ...}
26
///
27
#ifndef NDEBUG // Debug version
28
#define ASSERT_ONLY(x) x
29
#else
30
#define ASSERT_ONLY(x)
31
#endif
32
33
#ifndef USEMPI
34
#define MPI_ONLY(x)
35
#else
36
#define MPI_ONLY(x) x
37
#endif
38
39
namespace
utility {
40
}
// namespace utility
41
42
#endif // INCLUDED_utility_assert_HH
backtrace.hh
Programmatic backtrace whenever you want it.
Generated on Fri Mar 11 2016 12:02:25 for Rosetta by
1.8.7