mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +11:00
Added a static assertation
This commit is contained in:
parent
69121557a9
commit
ae8ef4ae4e
1 changed files with 3 additions and 1 deletions
4
main.cpp
4
main.cpp
|
|
@ -22,7 +22,9 @@ void SaveSig(int s)
|
|||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
static_assert(pre_log_size < max_log_size);
|
||||
static_assert(pre_log_size < max_log_size, "`max_log_size` must be larger than `pre_log_size`.");
|
||||
static_assert(!(max_log_size % pre_log_size), "`max_log_size` must be a multiple of `pre_log_size`.");
|
||||
|
||||
if (argc != 4)
|
||||
{
|
||||
std::cerr << "Usage: sudo ./bank <admin password> <saving frequency in minutes> <threads>\n";
|
||||
|
|
|
|||
Loading…
Reference in a new issue