From d4e8d4d51ade02e88cfe7dcae0dc16eb247df82d Mon Sep 17 00:00:00 2001 From: Sainan Date: Sat, 9 Dec 2023 12:19:35 +0100 Subject: [PATCH] Add macos and x86 conditions --- Sun/sun.cpp | 8 ++++++++ docs/Config (.sun file).md | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Sun/sun.cpp b/Sun/sun.cpp index 1a629d0..1f8e935 100644 --- a/Sun/sun.cpp +++ b/Sun/sun.cpp @@ -195,10 +195,18 @@ struct Project { val = SOUP_WINDOWS; } + else if (condition == "macos") + { + val = SOUP_MACOS; + } else if (condition == "linux") { val = SOUP_LINUX; } + else if (condition == "x86") + { + val = SOUP_X86; + } else if (condition == "true") { val = true; diff --git a/docs/Config (.sun file).md b/docs/Config (.sun file).md index 215ae77..1ebce69 100644 --- a/docs/Config (.sun file).md +++ b/docs/Config (.sun file).md @@ -76,7 +76,7 @@ if [not] endif ``` -Valid substitutions for `` are as follows: `windows`, `linux`, `true`, `false`. +Valid substitutions for `` are as follows: `windows`, `macos`, `linux`, `x86`, `true`, `false`. An example: