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