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

Method make

include/daScript/simulate/aot.h:1648–1652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1646 template <typename TT>
1647 struct das_new {
1648 static __forceinline TT * make ( Context * __context__ ) {
1649 char * data = __context__->allocate( sizeof(TT) );
1650 memset ( data, 0, sizeof(TT) );
1651 return (TT *) data;
1652 }
1653 template <typename QQ>
1654 static __forceinline TT * make_and_init ( Context * __context__, QQ && init ) {
1655 TT * data = (TT *) __context__->allocate( sizeof(TT) );

Callers

nothing calls this directly

Calls 1

allocateMethod · 0.45

Tested by

no test coverage detected