aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/snippets/new-debug-function.md5
-rw-r--r--docs/yaml/functions/debug.yaml14
2 files changed, 19 insertions, 0 deletions
diff --git a/docs/markdown/snippets/new-debug-function.md b/docs/markdown/snippets/new-debug-function.md
new file mode 100644
index 0000000..c900827
--- /dev/null
+++ b/docs/markdown/snippets/new-debug-function.md
@@ -0,0 +1,5 @@
+## Added `debug` function
+
+In addition to the `message()`, `warning()` and `error()` functions there is now the
+`debug()` function to log messages that only end up in the `meson-log.txt` logfile
+and are not printed to stdout at configure time.
diff --git a/docs/yaml/functions/debug.yaml b/docs/yaml/functions/debug.yaml
new file mode 100644
index 0000000..a64bd92
--- /dev/null
+++ b/docs/yaml/functions/debug.yaml
@@ -0,0 +1,14 @@
+name: debug
+returns: void
+since: 0.63.0
+description: Write the argument string to the meson build log.
+
+posargs:
+ message:
+ type: str | int | bool | list[str | int | bool] | dict[str | int | bool]
+ description: The message to print
+
+varargs:
+ name: msg
+ type: str | int | bool | list[str | int | bool] | dict[str | int | bool]
+ description: Additional parameters will be separated by spaces