diff --git a/README.md b/README.md index 2ec9450..64ccbf4 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. 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