MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / nestedBlockCheck

Method nestedBlockCheck

glslang/MachineIndependent/ParseHelper.cpp:6393–6400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6391}
6392
6393void TParseContext::nestedBlockCheck(const TSourceLoc& loc, const bool allowedInnerStruct)
6394{
6395 if ((!allowedInnerStruct && structNestingLevel > 0) ||
6396 (allowedInnerStruct && structNestingLevel <= 0) ||
6397 blockNestingLevel > 0)
6398 error(loc, "cannot nest a block definition inside a structure or block", "", "");
6399 ++blockNestingLevel;
6400}
6401
6402void TParseContext::nestedStructCheck(const TSourceLoc& loc)
6403{

Callers 1

yyparseFunction · 0.80

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected