MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / AllocInstance

Method AllocInstance

LuaSTGPlus/GameObjectPool.cpp:144–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142static fcyMemPool<sizeof(GameObjectBentLaser)> s_GameObjectBentLaserPool(1024);
143
144GameObjectBentLaser* GameObjectBentLaser::AllocInstance()
145{
146 // ! DZ��bad_alloc
147 GameObjectBentLaser* pRet = new(s_GameObjectBentLaserPool.Alloc()) GameObjectBentLaser();
148 return pRet;
149}
150
151void GameObjectBentLaser::FreeInstance(GameObjectBentLaser* p)
152{

Callers 1

ChangeResourceMethod · 0.80

Calls 1

AllocMethod · 0.80

Tested by

no test coverage detected