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

Function addCtor

include/daScript/ast/ast_interop.h:400–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 ) {

Callers

nothing calls this directly

Calls 2

isRefTypeMethod · 0.45
addFunctionMethod · 0.45

Tested by

no test coverage detected