--- a/scriptreader.cxx Sat Jul 14 22:03:34 2012 +0300 +++ b/scriptreader.cxx Sun Jul 15 00:31:08 2012 +0300 @@ -235,4 +235,12 @@ bool ScriptReader::BoolValue () { return (!token.compare ("1") || !token.compare ("true") || !token.compare ("yes")); +} + +void ScriptReader::MustValue (int type) { + switch (type) { + case RETURNVAL_INT: MustNumber (); break; + case RETURNVAL_STRING: MustString (); break; + case RETURNVAL_BOOLEAN: MustBool (); break; + } } \ No newline at end of file