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

Method GetPragma

shadercompiler/ParserState.cpp:1073–1085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1071}
1072
1073bool ParserState::GetPragma( const FileLocation& location, InlineString& string )
1074{
1075 for( auto it = m_pragmas.begin(); it != m_pragmas.end(); ++it )
1076 {
1077 if( !it->used && it->location.fileName == location.fileName && it->location.lineNumber <= location.lineNumber )
1078 {
1079 string = it->pragma;
1080 it->used = true;
1081 return true;
1082 }
1083 }
1084 return false;
1085}
1086
1087const std::set<Symbol*>& ParserState::GetDX9TextureFunctions()
1088{

Callers 1

ChangeLocationMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected