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

Function addModuleGeneric

src/builtin/module_builtin_ast.cpp:148–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 bool addModuleGeneric ( Module * module, FunctionPtr & _func, Context * context, LineInfoArg * lineInfo ) {
149 if ( !module ) context->throw_error_at(lineInfo, "expecting module, not null");
150 FunctionPtr func = das::move(_func);
151 return module->addGeneric(func, true);
152 }
153
154 bool addModuleVariable ( Module * module, VariablePtr & _var, Context * context, LineInfoArg * lineInfo ) {
155 if ( !module ) context->throw_error_at(lineInfo, "expecting module, not null");

Callers

nothing calls this directly

Calls 2

throw_error_atMethod · 0.80
addGenericMethod · 0.45

Tested by

no test coverage detected