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

Method nestedStructCheck

glslang/MachineIndependent/ParseHelper.cpp:6402–6407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6400}
6401
6402void TParseContext::nestedStructCheck(const TSourceLoc& loc)
6403{
6404 if (structNestingLevel > 0 || blockNestingLevel > 0)
6405 error(loc, "cannot nest a structure definition inside a structure or block", "", "");
6406 ++structNestingLevel;
6407}
6408
6409void TParseContext::arrayObjectCheck(const TSourceLoc& loc, const TType& type, const char* op)
6410{

Callers 1

yyparseFunction · 0.80

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected