aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")