mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
construct: Show console message only once per execution.
This commit is contained in:
parent
d6ce6d9b43
commit
0df06b0b62
1 changed files with 6 additions and 1 deletions
|
@ -114,7 +114,12 @@ try
|
|||
});
|
||||
|
||||
console_init();
|
||||
std::cout << console_message << generic_message;
|
||||
static std::once_flag seen_message;
|
||||
std::call_once(seen_message, []
|
||||
{
|
||||
std::cout << console_message << generic_message;
|
||||
});
|
||||
|
||||
while(1)
|
||||
{
|
||||
std::cout << "\n> " << std::flush;
|
||||
|
|
Loading…
Reference in a new issue