26 lines
441 B
C++
26 lines
441 B
C++
#include "os/c-api/il2cpp-config-platforms.h"
|
|||
|
|
|
||
|
|
#if IL2CPP_TARGET_WINDOWS
|
||
|
|
|
||
|
|
#include "os/Debug.h"
|
||
|
|
#include "os/Win32/WindowsHeaders.h"
|
||
|
|
#include "utils/StringUtils.h"
|
||
|
|
|
||
|
|
namespace il2cpp
|
||
|
|
{
|
||
|
|
namespace os
|
||
|
|
{
|
||
|
|
bool Debug::IsDebuggerPresent()
|
||
|
|
{
|
||
|
|
return ::IsDebuggerPresent() != FALSE;
|
||
|
|
}
|
||
|
|
|
||
|
|
void Debug::WriteString(const utils::StringView<Il2CppNativeChar>& message)
|
||
|
|
{
|
||
|
|
OutputDebugString(message.Str());
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif
|