From b3ff2cb5d7c85e808bb265e24bcd5a3408b1fdaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yunus=20Emre=20Ayd=C4=B1n?= Date: Sat, 17 Feb 2024 15:52:31 +0300 Subject: [PATCH 1/2] Fix MSVC errors --- include/Logger.hpp | 4 ++++ include/thirdparty/dylib/dylib.hpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/include/Logger.hpp b/include/Logger.hpp index c84b50e..59bf01d 100644 --- a/include/Logger.hpp +++ b/include/Logger.hpp @@ -28,6 +28,10 @@ SOFTWARE. #include #include +#ifdef ERROR +#undef ERROR +#endif + enum class LogType { WARNING, diff --git a/include/thirdparty/dylib/dylib.hpp b/include/thirdparty/dylib/dylib.hpp index b467e34..3d72dbf 100644 --- a/include/thirdparty/dylib/dylib.hpp +++ b/include/thirdparty/dylib/dylib.hpp @@ -21,6 +21,8 @@ #include #endif +#define NOMINMAX + #if (defined(_WIN32) || defined(_WIN64)) #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN From dda8a42a805f37dbfb739fa436da9c7486827ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yunus=20Emre=20Ayd=C4=B1n?= <47641431+DolphyWind@users.noreply.github.com> Date: Sat, 17 Feb 2024 16:37:39 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b3b49e6..4336f7a 100644 --- a/README.md +++ b/README.md @@ -276,6 +276,7 @@ Similar to File Reader, File Openers read a filename from the stack in the same They push zero on failure. >**File Write Opener(w):** Supports east, west, southwest and southeast directions. Opens the file in write and binary modes and pushes its id to the stack. + >**File Append Opener(a):** Supports east, northeast, north, northwest, west, southwest, south and southeast directions. Opens the file in append and binary modes and pushes its id to the stack. ### **File Writer (W)** @@ -434,4 +435,4 @@ The interpreter has these command line arguments: - `--version` or `-v`: Prints the version and exits. - `--log` or `-l`: Enables logging. Electra interpreter logs each step of the program and saves it into a file. - `--stack ` or `-s `: Specifies some initial values for stacks. For example, `-s "0 1 2,3 4 5"` Pushes 0,1 and 2 to the first stack and 3, 4 and 5 to the second stack. -- `--stack-count ` or `-sc `: Sets the stack count. The default stack count is 64. \ No newline at end of file +- `--stack-count ` or `-sc `: Sets the stack count. The default stack count is 64.