| 398 | |
| 399 | template <typename CType, typename ...Args> |
| 400 | inline auto addCtor ( Module & mod, const ModuleLibrary & lib, const char * name, const char * cppName = nullptr ) { |
| 401 | auto fn = new BuiltIn_PlacementNew<CType,Args...>(name,lib,cppName); |
| 402 | DAS_ASSERT(fn->result->isRefType() && "can't add ctor to by-value types"); |
| 403 | mod.addFunction(fn); |
| 404 | return fn; |
| 405 | } |
| 406 | |
| 407 | template <typename CType, typename ...Args> |
| 408 | inline auto addUsing ( Module & mod, const ModuleLibrary & lib, const char * cppName ) { |
nothing calls this directly
no test coverage detected