MCPcopy Create free account
hub / github.com/Gecode/gecode / yyassert

Function yyassert

gecode/flatzinc/parser.tab.cpp:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void yyassert(ParserState* pp, bool cond, const char* str)
114{
115 if (!cond) {
116 pp->err << "Error: " << str
117 << " in line no. " << yyget_lineno(pp->yyscanner)
118 << std::endl;
119 pp->hadError = true;
120 }
121}
122
123/*
124 * The symbol tables

Callers 1

yyparseFunction · 0.85

Calls 1

yyget_linenoFunction · 0.85

Tested by

no test coverage detected