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

Method make_and_init

include/daScript/simulate/aot.h:1654–1658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1652 }
1653 template <typename QQ>
1654 static __forceinline TT * make_and_init ( Context * __context__, QQ && init ) {
1655 TT * data = (TT *) __context__->allocate( sizeof(TT) );
1656 *data = init();
1657 return data;
1658 }
1659 };
1660
1661 template <typename TT>

Callers

nothing calls this directly

Calls 2

initFunction · 0.50
allocateMethod · 0.45

Tested by

no test coverage detected