| 123456789101112131415161718192021222324252627282930313233 |
- // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #include <AnKi/Script/ScriptManager.h>
- #include <AnKi/Script/ScriptEnvironment.h>
- #include <AnKi/Util/Logger.h>
- namespace anki {
- ScriptManager::PoolInit::PoolInit(AllocAlignedCallback allocCb, void* allocCbData)
- {
- ScriptMemoryPool::allocateSingleton(allocCb, allocCbData);
- }
- ScriptManager::PoolInit ::~PoolInit()
- {
- ScriptMemoryPool::freeSingleton();
- }
- ScriptManager::ScriptManager(AllocAlignedCallback allocCb, void* allocCbData)
- : m_poolInit(allocCb, allocCbData)
- {
- ANKI_SCRIPT_LOGI("Initializing scripting");
- }
- ScriptManager::~ScriptManager()
- {
- ANKI_SCRIPT_LOGI("Destroying scripting");
- }
- } // end namespace anki
|