Debug.cpp 441 B

12345678910111213141516171819202122232425
  1. #include "os/c-api/il2cpp-config-platforms.h"
  2. #if IL2CPP_TARGET_WINDOWS
  3. #include "os/Debug.h"
  4. #include "os/Win32/WindowsHeaders.h"
  5. #include "utils/StringUtils.h"
  6. namespace il2cpp
  7. {
  8. namespace os
  9. {
  10. bool Debug::IsDebuggerPresent()
  11. {
  12. return ::IsDebuggerPresent() != FALSE;
  13. }
  14. void Debug::WriteString(const utils::StringView<Il2CppNativeChar>& message)
  15. {
  16. OutputDebugString(message.Str());
  17. }
  18. }
  19. }
  20. #endif