| 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"); |
nothing calls this directly
no test coverage detected