verbose_util.hpp

来自「图论必用」· HPP 代码 · 共 51 行

HPP
51
字号
/*
 * verbose_util.hpp
 * David Gleich
 * Stanford University
 * 17 March 2006
 */

/**
 * @file verbose_util.hpp
 * Add defines to control verbose statement in the code.
 */

//
// this file is somewhat strange.  There are two sections; the first section 
// simple makes a few define statements
//
#ifdef YASMIC_VERBOSE_UTIL_DEFINE
namespace yasmic
{
    int yasmic_verbose;
} // namespace yasmic
#else
namespace yasmic
{
    extern int yasmic_verbose;
}
#endif // YASMIC_VERBOSE_UTIL_DEFINE

#ifndef YASMIC_VERBOSE_UTIL
#define YASMIC_VERBOSE_UTIL

#ifdef YASMIC_USE_VERBOSE

	#define YASMIC_VERBOSE(a) \
        if (yasmic::yasmic_verbose) \
        { \
            a; \
        } 

#else

	#define YASMIC_VERBOSE(a) \

#endif 




#endif // YASMIC_VERBOSE_UTIL

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?