MCPcopy Create free account
hub / github.com/carbonengine/trinity / AddPragma

Method AddPragma

shadercompiler/ParserState.cpp:1049–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1047}
1048
1049void ParserState::AddPragma( const InlineString& string )
1050{
1051 Pragma pragma;
1052 pragma.pragma = string;
1053 pragma.location = GetCurrentLocation();
1054 pragma.used = false;
1055 if( !m_inDiscoverMode )
1056 {
1057 if( IsPermutationPragma( ToString( pragma.pragma ) ) )
1058 {
1059 return;
1060 }
1061 }
1062 m_pragmas.push_back( pragma );
1063}
1064
1065void ParserState::ResetPragmaUsage()
1066{

Callers

nothing calls this directly

Calls 2

IsPermutationPragmaFunction · 0.85
ToStringFunction · 0.70

Tested by

no test coverage detected