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

Function adapt

src/builtin/module_builtin_ast.cpp:45–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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");

Callers 1

updateMethod · 0.85

Calls 2

adapt_fieldFunction · 0.85
FuncClass · 0.50

Tested by

no test coverage detected