MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / addCallMacro

Function addCallMacro

include/daScript/ast/ast.h:1214–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1212 };
1213 }
1214 __forceinline bool addCallMacro ( const string & fnName, ExprCallFactory && factory ) {
1215 if ( callThis.find(fnName)!=callThis.end() ) {
1216 return false;
1217 }
1218 callThis[fnName] = das::move(factory);
1219 return true;
1220 }
1221 public:
1222 smart_ptr<Context> macroContext;
1223 safebox<TypeDecl, TypeDeclPtr> aliasTypes;

Callers 1

addRuntimeMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected