ScriptManager.cpp 807 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #include <AnKi/Script/ScriptManager.h>
  6. #include <AnKi/Script/ScriptEnvironment.h>
  7. #include <AnKi/Util/Logger.h>
  8. namespace anki {
  9. ScriptManager::PoolInit::PoolInit(AllocAlignedCallback allocCb, void* allocCbData)
  10. {
  11. ScriptMemoryPool::allocateSingleton(allocCb, allocCbData);
  12. }
  13. ScriptManager::PoolInit ::~PoolInit()
  14. {
  15. ScriptMemoryPool::freeSingleton();
  16. }
  17. ScriptManager::ScriptManager(AllocAlignedCallback allocCb, void* allocCbData)
  18. : m_poolInit(allocCb, allocCbData)
  19. {
  20. ANKI_SCRIPT_LOGI("Initializing scripting");
  21. }
  22. ScriptManager::~ScriptManager()
  23. {
  24. ANKI_SCRIPT_LOGI("Destroying scripting");
  25. }
  26. } // end namespace anki