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

Function FindMacro

shadercompiler/Macro.h:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33};
34
35inline const Macro* FindMacro( const std::vector<Macro>& macros, const char* name )
36{
37 for( auto& macro : macros )
38 {
39 if( macro.name == name )
40 {
41 return &macro;
42 }
43 }
44 return nullptr;
45}
46
47inline Macro* FindMacro( std::vector<Macro>& macros, const char* name )
48{

Callers 2

CompileEffectMethod · 0.85
GetPlatformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected