ExecutionMode.cpp 743 B

12345678910111213141516171819
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #include "RuntimeLanguagePch.h"
  6. static const char *const ExecutionModeNames[] =
  7. {
  8. #define EXECUTION_MODE(name) "" STRINGIZE(name) "",
  9. #include "ExecutionModes.h"
  10. #undef EXECUTION_MODE
  11. };
  12. const char *ExecutionModeName(const ExecutionMode executionMode)
  13. {
  14. Assert(executionMode < ExecutionMode::Count);
  15. return ExecutionModeNames[static_cast<size_t>(executionMode)];
  16. }