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

Method AssertInputInt

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

Source from the content-addressed store, hash-verified

97}
98
99bool cEnvironment::AssertInputInt(const cString& input, const cString& name, const cString& type, Feedback& feedback)
100{
101 if (input.IsNumeric() == false) {
102 feedback.Error("in %s, %s set to non-integer", (const char*)type, (const char*)name);
103 return false;
104 }
105 return true;
106}
107
108bool cEnvironment::AssertInputDouble(const cString& input, const cString& name, const cString& type, Feedback& feedback)
109{

Callers

nothing calls this directly

Calls 2

IsNumericMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected