From 1540e615f13503722f1067c693f3d394218cbd9e Mon Sep 17 00:00:00 2001 From: Paulo Antonio Alvarez Date: Wed, 4 Oct 2017 21:04:51 -0300 Subject: interpreter: Add warning function --- docs/markdown/Reference-manual.md | 8 ++++++++ docs/markdown/snippets/warning_function | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 docs/markdown/snippets/warning_function (limited to 'docs/markdown') 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') -- cgit v1.1