diff options
author | Mole Shang <[email protected]> | 2023-07-25 09:27:26 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2023-08-05 23:19:46 +0800 |
commit | ed8f6df90b0c39835198d5b7af4bbd391362f180 (patch) | |
tree | 907ba31bac854eb5dc8a2781825e24c049b10580 /src/constants.h | |
download | hinata-ed8f6df90b0c39835198d5b7af4bbd391362f180.tar.gz hinata-ed8f6df90b0c39835198d5b7af4bbd391362f180.tar.bz2 hinata-ed8f6df90b0c39835198d5b7af4bbd391362f180.zip |
hinata: initial commit
Diffstat (limited to 'src/constants.h')
-rw-r--r-- | src/constants.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/constants.h b/src/constants.h new file mode 100644 index 0000000..5891d7a --- /dev/null +++ b/src/constants.h @@ -0,0 +1,18 @@ +#ifndef CONSTANTS_H_ +#define CONSTANTS_H_ + +#define APP_NAME "Hinata" +#define MAX_VALUE 100 + +#define CEIL_DIV(a, b) (((a) + (b)-1) / (b)) +#define MAX(x, y) ((x) > (y)) ? (x) : (y) + +#ifdef _WIN32 +#define SPLITTER_CHAR '\\' +#define SPLITTER_STR "\\" +#else +#define SPLITTER_CHAR '/' +#define SPLITTER_STR "/" +#endif + +#endif |