Rename the info function to inform to avoid likely name conflicts
This commit is contained in:
parent
8ac63c48a4
commit
96936c6bf5
2 changed files with 3 additions and 3 deletions
|
@ -135,14 +135,14 @@ extern bool want_hack, hack_verbose;
|
||||||
|
|
||||||
#define warn(...) \
|
#define warn(...) \
|
||||||
cond_message(want_warn, std::cerr, "warn", warn_verbose, __VA_ARGS__)
|
cond_message(want_warn, std::cerr, "warn", warn_verbose, __VA_ARGS__)
|
||||||
#define info(...) \
|
#define inform(...) \
|
||||||
cond_message(want_info, std::cout, "info", info_verbose, __VA_ARGS__)
|
cond_message(want_info, std::cout, "info", info_verbose, __VA_ARGS__)
|
||||||
#define hack(...) \
|
#define hack(...) \
|
||||||
cond_message(want_hack, std::cerr, "hack", hack_verbose, __VA_ARGS__)
|
cond_message(want_hack, std::cerr, "hack", hack_verbose, __VA_ARGS__)
|
||||||
|
|
||||||
#define warn_once(...) \
|
#define warn_once(...) \
|
||||||
cond_message_once(want_warn, std::cerr, "warn", warn_verbose, __VA_ARGS__)
|
cond_message_once(want_warn, std::cerr, "warn", warn_verbose, __VA_ARGS__)
|
||||||
#define info_once(...) \
|
#define inform_once(...) \
|
||||||
cond_message_once(want_info, std::cout, "info", info_verbose, __VA_ARGS__)
|
cond_message_once(want_info, std::cout, "info", info_verbose, __VA_ARGS__)
|
||||||
#define hack_once(...) \
|
#define hack_once(...) \
|
||||||
cond_message_once(want_hack, std::cerr, "hack", hack_verbose, __VA_ARGS__)
|
cond_message_once(want_hack, std::cerr, "hack", hack_verbose, __VA_ARGS__)
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
SimLoopExitEvent *
|
SimLoopExitEvent *
|
||||||
simulate(Tick num_cycles)
|
simulate(Tick num_cycles)
|
||||||
{
|
{
|
||||||
info("Entering event queue @ %d. Starting simulation...\n", curTick);
|
inform("Entering event queue @ %d. Starting simulation...\n", curTick);
|
||||||
|
|
||||||
if (num_cycles < 0)
|
if (num_cycles < 0)
|
||||||
fatal("simulate: num_cycles must be >= 0 (was %d)\n", num_cycles);
|
fatal("simulate: num_cycles must be >= 0 (was %d)\n", num_cycles);
|
||||||
|
|
Loading…
Reference in a new issue