mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
29 lines
No EOL
744 B
C++
29 lines
No EOL
744 B
C++
#pragma once
|
|
|
|
// Setting both values to 0 does not compile logging
|
|
constexpr unsigned max_log_size = 100;
|
|
constexpr unsigned pre_log_size = 10;
|
|
|
|
constexpr unsigned max_name_size = 50;
|
|
|
|
constexpr const char *users_location = "../users.json";
|
|
constexpr const char *config_location = "../config.json";
|
|
|
|
//returns money to an account on deletion
|
|
constexpr bool return_on_del = false;
|
|
constexpr const char *return_account = "";
|
|
|
|
/*
|
|
if true, when frequency is hit after changes have happened then save
|
|
pros
|
|
LOW disk usage
|
|
cons
|
|
overhead to all mutating functions
|
|
if false, when frequency is hit save
|
|
pros
|
|
safer
|
|
no atomic overhead
|
|
cons
|
|
CONSTANT disk usage
|
|
*/
|
|
#define CONSERVATIVE_DISK_SAVE false |