svZeroDSolver
Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the
2// University of California, and others. SPDX-License-Identifier: BSD-3-Clause
3/**
4 * @file Debug.h
5 * @brief DEBUG_MSG source file
6 */
7#ifndef SVZERODSOLVER_HELPERS_DEBUG_HPP_
8#define SVZERODSOLVER_HELPERS_DEBUG_HPP_
9
10#include <iostream>
11
12/**
13 * @brief DEBUG_MSG Macro to print debug messages for debug build
14 */
15#ifndef NDEBUG
16#define DEBUG_MSG(str) \
17 do { \
18 std::cout << "[DEBUG MESSAGE] " << str << std::endl; \
19 } while (false)
20#else
21#define DEBUG_MSG(str) \
22 do { \
23 } while (false)
24#endif
25
26#endif // SVZERODSOLVER_HELPERS_DEBUG_HPP_