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

Method AssertModule

src/module/assertmodule.cpp:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include "assertexception.h"
20
21AssertModule::AssertModule(Reporter& r) : Module(r,"assert")
22{
23 addDescription(tr("Checks the expected value and stops execution when false"));
24 addParameter("condition",tr("A value that is expected to be true"));
25 addParameter("message",tr("A message that is displayed when the assertion fails"));
26}
27
28Node* AssertModule::evaluate(const Context& ctx) const
29{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected