Rename the info function to inform to avoid likely name conflicts
This commit is contained in:
parent
8ac63c48a4
commit
96936c6bf5
|
@ -135,14 +135,14 @@ extern bool want_hack, hack_verbose;
|
|||
|
||||
#define warn(...) \
|
||||
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__)
|
||||
#define hack(...) \
|
||||
cond_message(want_hack, std::cerr, "hack", hack_verbose, __VA_ARGS__)
|
||||
|
||||
#define warn_once(...) \
|
||||
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__)
|
||||
#define hack_once(...) \
|
||||
cond_message_once(want_hack, std::cerr, "hack", hack_verbose, __VA_ARGS__)
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
SimLoopExitEvent *
|
||||
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)
|
||||
fatal("simulate: num_cycles must be >= 0 (was %d)\n", num_cycles);
|
||||
|
|
Loading…
Reference in a new issue