| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // Copyright (C) 2009-2020, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #pragma once
- #include <anki/util/StdTypes.h>
- namespace anki
- {
- /// @addtogroup util_system
- /// @{
- /// Get the number of CPU cores
- U32 getCpuCoresCount();
- /// Visit the program stack.
- class BackTraceWalker
- {
- public:
- BackTraceWalker(U stackSize = 50)
- : m_stackSize(stackSize)
- {
- }
- virtual ~BackTraceWalker()
- {
- }
- virtual void operator()(const char* symbol) = 0;
- void exec();
- private:
- U m_stackSize;
- };
- /// Return true if the engine is running from a terminal emulator.
- Bool runningFromATerminal();
- /// @}
- } // end namespace anki
|