| 43 | } |
| 44 | |
| 45 | Func adapt ( const char * funcName, char * pClass, const StructInfo * info ) { |
| 46 | char * field = adapt_field(funcName, pClass, info); |
| 47 | return field ? *(Func*)field : Func((void *)nullptr); |
| 48 | } |
| 49 | |
| 50 | bool addModuleFunction ( Module * module, FunctionPtr & _func, Context * context, LineInfoArg * lineInfo ) { |
| 51 | if ( !module ) context->throw_error_at(lineInfo, "expecting module, not null"); |
no test coverage detected