2013-07-18 23:01:04 +00:00
|
|
|
/*
|
2013-07-19 17:29:33 +00:00
|
|
|
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
|
2013-07-18 23:01:04 +00:00
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
2013-07-19 17:29:33 +00:00
|
|
|
Author: Leonardo de Moura
|
2013-07-18 23:01:04 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
namespace lean {
|
|
|
|
void set_verbosity_level(unsigned lvl);
|
|
|
|
unsigned get_verbosity_level();
|
|
|
|
std::ostream& verbose_stream();
|
|
|
|
void set_verbose_stream(std::ostream& s);
|
|
|
|
#define lean_verbose(LVL, CODE) { if (get_verbosity_level() >= LVL) { CODE } }
|
|
|
|
}
|