MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / AssertFunction

Method AssertFunction

src/function/assertfunction.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "context.h"
21
22AssertFunction::AssertFunction() : Function("assert")
23{
24 addDescription(tr("Checks the expected value and stops execution when false"));
25 addParameter("condition",tr("A value that is expected to be true"));
26 addParameter("message",tr("A message that is displayed when the assertion fails"));
27}
28
29Value& AssertFunction::evaluate(const Context& ctx) const
30{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected