MCPcopy Create free account
hub / github.com/devosoft/avida / AssertInputDouble

Method AssertInputDouble

avida-core/source/main/cEnvironment.cc:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108bool cEnvironment::AssertInputDouble(const cString& input, const cString& name, const cString& type, Feedback& feedback)
109{
110 if (input.IsNumber() == false) {
111 feedback.Error("in %s, %s set to non-number", (const char*)type, (const char*)name);
112 return false;
113 }
114 return true;
115}
116
117bool cEnvironment::AssertInputBool(const cString& input, const cString& name, const cString& type, Feedback& feedback)
118{

Callers

nothing calls this directly

Calls 2

IsNumberMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected