From 96e0ba81e20fa68d973ac84c01ead139118c072a Mon Sep 17 00:00:00 2001
From: ruki
Date: Sat, 11 Aug 2018 00:46:01 +0800
Subject: modify title orders
---
manual.md | 72 +++++++++++++++++++++++++++++++--------------------------------
1 file changed, 36 insertions(+), 36 deletions(-)
(limited to 'manual.md')
diff --git a/manual.md b/manual.md
index 17cda852..cb0f9e5c 100644
--- a/manual.md
+++ b/manual.md
@@ -240,6 +240,42 @@ if is_option("demo") then
end
```
+##### is_config
+
+###### Is the given config values?
+
+This interface is introduced from version 2.2.2 to determine whether the specified configuration is a given value.
+
+For example:
+
+```console
+$ xmake f --test=hello1
+```
+
+```lua
+option("test")
+ set_showmenu("true")
+ set_description("The test config option")
+option_end()
+
+if is_config("test", "hello1", "hello2") then
+ add_defines("HELLO")
+end
+```
+
+Not only that, we can also set pattern matching rules to determine values, such as:
+
+```lua
+if is_config("test", "hello.*") then
+ add_defines("HELLO")
+end
+```
+
+
+This interface is not only able to determine the custom options defined through the [option](#option),
+but also to determine the built-in global and local configuration.
+
+
##### has_config
###### Is the given configs enabled?
@@ -278,42 +314,6 @@ This interface can determine not only the built-in global and local configs,
but also the custom options defined through the [option](#option).
-##### is_config
-
-###### Is the given config values?
-
-This interface is introduced from version 2.2.2 to determine whether the specified configuration is a given value.
-
-For example:
-
-```console
-$ xmake f --test=hello1
-```
-
-```lua
-option("test")
- set_showmenu("true")
- set_description("The test config option")
-option_end()
-
-if is_config("test", "hello1", "hello2") then
- add_defines("HELLO")
-end
-```
-
-Not only that, we can also set pattern matching rules to determine values, such as:
-
-```lua
-if is_config("test", "hello.*") then
- add_defines("HELLO")
-end
-```
-
-
-This interface is not only able to determine the custom options defined through the [option](#option),
-but also to determine the built-in global and local configuration.
-
-
#### Global Interfaces
The global interface affects the whole project description scope and all sub-project files.
--
cgit v1.2.3