diff options
author | Josh Blum | 2012-09-02 17:09:46 -0700 |
---|---|---|
committer | Josh Blum | 2012-09-02 17:09:46 -0700 |
commit | 591905b3a33982a46e8c956d4ca226bb4a241b54 (patch) | |
tree | 897a168667fa8048e816a131428f81c830892942 /lib/debug_impl.hpp | |
parent | 814be255443ef4ada223375263ee3d2ad43540c1 (diff) | |
download | sandhi-591905b3a33982a46e8c956d4ca226bb4a241b54.tar.gz sandhi-591905b3a33982a46e8c956d4ca226bb4a241b54.tar.bz2 sandhi-591905b3a33982a46e8c956d4ca226bb4a241b54.zip |
created history implementation (untested)
Diffstat (limited to 'lib/debug_impl.hpp')
-rw-r--r-- | lib/debug_impl.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/debug_impl.hpp b/lib/debug_impl.hpp new file mode 100644 index 0000000..80c01c7 --- /dev/null +++ b/lib/debug_impl.hpp @@ -0,0 +1,26 @@ +// +// Copyright 2012 Josh Blum +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with io_sig program. If not, see <http://www.gnu.org/licenses/>. + +#ifndef INCLUDED_LIBGRAS_DEBUG_IMPL_HPP +#define INCLUDED_LIBGRAS_DEBUG_IMPL_HPP + +#include <iostream> + +#define HERE() std::cerr << __FILE__ << ":" << __LINE__ << std::endl << std::flush; +#define VAR(x) std::cerr << #x << " = " << (x) << std::endl << std::flush; +#define ASSERT(x) if(not (x)){std::cerr << "ASSERT FAIL " << __FILE__ << ":" << __LINE__ << "\n\t" << #x << std::endl << std::flush;} + +#endif /*INCLUDED_LIBGRAS_DEBUG_IMPL_HPP*/ |