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

Function addInterop

include/daScript/ast/ast_interop.h:392–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390
391 template <InteropFunction func, typename RetT, typename ...Args>
392 inline auto addInterop ( Module & mod, const ModuleLibrary & lib, const char * name, SideEffects seFlags,
393 const char * cppName = nullptr ) {
394 auto fnX = new InteropFn<func, RetT, Args...>(name, lib, cppName);
395 addExternFunc(mod, fnX, true, seFlags);
396 return fnX;
397 }
398
399 template <typename CType, typename ...Args>
400 inline auto addCtor ( Module & mod, const ModuleLibrary & lib, const char * name, const char * cppName = nullptr ) {

Callers

nothing calls this directly

Calls 1

addExternFuncFunction · 0.85

Tested by

no test coverage detected