aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Reference-manual.md8
-rw-r--r--docs/markdown/snippets/warning_function6
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 42d02e1..ba86e48 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -847,6 +847,14 @@ The keyword arguments for this are the same as for [`executable`](#executable) w
This function prints its argument to stdout.
+### warning()
+
+``` meson
+ void warning(text)
+```
+
+This function prints its argument to stdout prefixed with WARNING:.
+
### project()
``` meson
diff --git a/docs/markdown/snippets/warning_function b/docs/markdown/snippets/warning_function
new file mode 100644
index 0000000..537651e
--- /dev/null
+++ b/docs/markdown/snippets/warning_function
@@ -0,0 +1,6 @@
+# Added warning function
+
+This function prints its argument to the console prefixed by "WARNING:" in
+yellow color. A simple example:
+
+warning('foo is deprecated, please use bar instead')