From 2cdddbab56ffdbca6accfc626521968fbe2c917e Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Tue, 29 Mar 2022 23:59:44 +0200 Subject: Add new debug() function Adds a new debug() function that can be used in the meson.build to log messages to the meson-log.txt that will not be printed to stdout when configuring the project. --- docs/markdown/snippets/new-debug-function.md | 5 +++++ docs/yaml/functions/debug.yaml | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 docs/markdown/snippets/new-debug-function.md create mode 100644 docs/yaml/functions/debug.yaml (limited to 'docs') diff --git a/docs/markdown/snippets/new-debug-function.md b/docs/markdown/snippets/new-debug-function.md new file mode 100644 index 000000000..c900827f4 --- /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 000000000..a64bd9272 --- /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 -- cgit v1.2.3