aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <waruqi@gmail.com>2018-05-22 23:17:06 +0800
committerruki <waruqi@gmail.com>2018-05-22 13:42:37 +0800
commit0de6b8970950b9d44c10be9a457463de623ebf08 (patch)
treeb84276df876cec48dbe1ebafa9d435775dc338f4
parentbc8439adcf847584e1e9c55c1992df9a247439ec (diff)
downloadxmake-docs-0de6b8970950b9d44c10be9a457463de623ebf08.tar.gz
xmake-docs-0de6b8970950b9d44c10be9a457463de623ebf08.zip
modify docs
-rw-r--r--manual.md3
-rw-r--r--zh/manual.md3
2 files changed, 2 insertions, 4 deletions
diff --git a/manual.md b/manual.md
index bcef3728..5be2fcaf 100644
--- a/manual.md
+++ b/manual.md
@@ -1986,8 +1986,7 @@ add_shflags("xxx")
target("demo")
-- 设置和启用config.h
- set_config_h("$(buildir)/config.h")
- set_config_h_prefix("TEST")
+ set_config_header("$(buildir)/config.h", {prefix = "TEST"})
-- 仅通过参数一设置模块名前缀
add_cfunc("libc", nil, nil, {"sys/select.h"}, "select")
diff --git a/zh/manual.md b/zh/manual.md
index 4745a2f8..75b334e9 100644
--- a/zh/manual.md
+++ b/zh/manual.md
@@ -2006,8 +2006,7 @@ add_shflags("xxx")
target("demo")
-- 设置和启用config.h
- set_config_h("$(buildir)/config.h")
- set_config_h_prefix("TEST")
+ set_config_header("$(buildir)/config.h", {prefix = "TEST"})
-- 仅通过参数一设置模块名前缀
add_cfunc("libc", nil, nil, {"sys/select.h"}, "select")