Debug.cpp 510 B

1234567891011121314151617181920212223242526
  1. // Generic implementation for platforms that don't have this implemented
  2. #include "il2cpp-config.h"
  3. #include "os/Debug.h"
  4. #include "utils/StringUtils.h"
  5. namespace il2cpp
  6. {
  7. namespace os
  8. {
  9. #if !IL2CPP_PLATFORM_SUPPORTS_DEBUGGER_PRESENT
  10. bool Debug::IsDebuggerPresent()
  11. {
  12. return false;
  13. }
  14. #endif
  15. #if IL2CPP_USE_GENERIC_DEBUG_LOG
  16. void Debug::WriteString(const utils::StringView<Il2CppNativeChar>& message)
  17. {
  18. il2cpp::utils::StringUtils::Printf(message.Str());
  19. }
  20. #endif
  21. }
  22. }