diff options
author | Josh Blum | 2012-09-02 17:26:53 -0700 |
---|---|---|
committer | Josh Blum | 2012-09-02 17:26:53 -0700 |
commit | 57657446c7ba054b7d45c7befef2ebe8ee891730 (patch) | |
tree | 1bd483ea9fdfdb242228c01f31b67dd90015f8e3 /lib/gras_impl/debug.hpp | |
parent | 591905b3a33982a46e8c956d4ca226bb4a241b54 (diff) | |
download | sandhi-57657446c7ba054b7d45c7befef2ebe8ee891730.tar.gz sandhi-57657446c7ba054b7d45c7befef2ebe8ee891730.tar.bz2 sandhi-57657446c7ba054b7d45c7befef2ebe8ee891730.zip |
moved lib/impl headers for cleanup
Diffstat (limited to 'lib/gras_impl/debug.hpp')
-rw-r--r-- | lib/gras_impl/debug.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/gras_impl/debug.hpp b/lib/gras_impl/debug.hpp new file mode 100644 index 0000000..ea0d7bf --- /dev/null +++ b/lib/gras_impl/debug.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_IMPL_DEBUG_HPP +#define INCLUDED_LIBGRAS_IMPL_DEBUG_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_IMPL_DEBUG_HPP*/ |