mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
code formating
This commit is contained in:
parent
dea6a7c217
commit
3eadda9466
@ -8,12 +8,12 @@ void prepare_logdir()
|
|||||||
system("del /F /Q logs\\*");
|
system("del /F /Q logs\\*");
|
||||||
#else
|
#else
|
||||||
auto rv = system("mkdir -p logs");
|
auto rv = system("mkdir -p logs");
|
||||||
if(rv != 0)
|
if (rv != 0)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Failed to mkdir -p logs");
|
throw std::runtime_error("Failed to mkdir -p logs");
|
||||||
}
|
}
|
||||||
rv = system("rm -f logs/*");
|
rv = system("rm -f logs/*");
|
||||||
if(rv != 0)
|
if (rv != 0)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Failed to rm -f logs/*");
|
throw std::runtime_error("Failed to rm -f logs/*");
|
||||||
}
|
}
|
||||||
@ -64,5 +64,4 @@ bool ends_with(std::string const &value, std::string const &ending)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return std::equal(ending.rbegin(), ending.rend(), value.rbegin());
|
return std::equal(ending.rbegin(), ending.rend(), value.rbegin());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user