summaryrefslogtreecommitdiff
path: root/src/constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/constants.h')
-rw-r--r--src/constants.h18
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