summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h
index 408cf63..20e63e9 100644
--- a/src/config.h
+++ b/src/config.h
@@ -1,13 +1,15 @@
#pragma once
#if defined(_WIN32)
-#define MAX_INPUT_LENGTH 32767
+#define MAX_INPUT_LENGTH 4096
#elif defined(__linux__)
#define MAX_INPUT_LENGTH 4096
#elif defined(__APPLE__)
#define MAX_INPUT_LENGTH 1024
#endif
+#define exit_oom() { perror("Out of memory."); exit(-1); }
+
#define AUTHOR "created by Aldrik Ramaekers"
#define CONTACT "<aldrik.ramaekers@gmail.com>"