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

Function AddFunction

shadercompiler/IntrinsicTypes.h:158–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158inline Symbol* AddFunction( SymbolTable& table, const char* name, IntrinsicType intrinsicType )
159{
160 InlineString str;
161 str.start = name;
162 str.end = name + strlen( name );
163 Symbol* symbol = table.AddSymbol( MakeInlineString( name ), ALLOW_OVERRIDES );
164 symbol->isFunction = true;
165 symbol->intrinsicType = intrinsicType;
166 return symbol;
167}
168
169inline Symbol* AddConstant( SymbolTable& table, const char* name, int opType )
170{

Callers 1

AddIntrinsicsMethod · 0.85

Calls 2

MakeInlineStringFunction · 0.85
AddSymbolMethod · 0.80

Tested by

no test coverage detected