From b9e405c634bc7c00b604cc08934512a134337317 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 12 Oct 2018 13:52:27 -0400 Subject: doc: Add missing assert() function [skip ci] --- docs/markdown/Reference-manual.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/markdown') diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index cc4ba9b..e4c9303 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -112,6 +112,14 @@ Note that all these options are also available while running the `meson test` script for running tests instead of `ninja test` or `msbuild RUN_TESTS.vcxproj`, etc depending on the backend. +### assert() + +``` meson + void assert(*condition*, *message*) +``` + +Abort with an error message if `condition` evaluates to `false`. + ### benchmark() ``` meson -- cgit v1.1