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

Function AddConstant

shadercompiler/IntrinsicTypes.h:169–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169inline Symbol* AddConstant( SymbolTable& table, const char* name, int opType )
170{
171 Symbol* symbol = table.AddSymbol( MakeInlineString( name ), ALLOW_OVERRIDES );
172 symbol->type.FromTokenType( opType );
173 return symbol;
174}
175
176template <int Arg>
177int TypeSameAsArg( ASTNode* call )

Callers 1

AddIntrinsicsMethod · 0.85

Calls 3

MakeInlineStringFunction · 0.85
AddSymbolMethod · 0.80
FromTokenTypeMethod · 0.45

Tested by

no test coverage detected