MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / checkArgCount

Function checkArgCount

tools/modeltool/wavefrontOBJ.cpp:224–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222
223
224static bool checkArgCount(int reqCount, int count,
225 const std::string& type, int lineNum) {
226 if (count < (reqCount + 1)) {
227 // FIXME -- lineNum is wrong because of the way the file is parsed
228 printf("ERROR: not enough parameters for \"%s\" at line %i\n",
229 type.c_str(), lineNum + 1);
230 return false;
231 }
232 return true;
233}
234
235
236void readOBJ(CModel& model, std::string file) {

Callers 1

readOBJFunction · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected