mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Cleanup.
This commit is contained in:
18
src/os.cpp
18
src/os.cpp
@@ -70,7 +70,8 @@ namespace bx
|
||||
#if BX_PLATFORM_WINDOWS
|
||||
::Sleep(_ms);
|
||||
#elif BX_PLATFORM_XBOXONE \
|
||||
|| BX_PLATFORM_WINRT
|
||||
|| BX_PLATFORM_WINRT \
|
||||
|| BX_CRT_NONE
|
||||
BX_UNUSED(_ms);
|
||||
debugOutput("sleep is not implemented"); debugBreak();
|
||||
#else
|
||||
@@ -85,7 +86,8 @@ namespace bx
|
||||
#if BX_PLATFORM_WINDOWS
|
||||
::SwitchToThread();
|
||||
#elif BX_PLATFORM_XBOXONE \
|
||||
|| BX_PLATFORM_WINRT
|
||||
|| BX_PLATFORM_WINRT \
|
||||
|| BX_CRT_NONE
|
||||
debugOutput("yield is not implemented"); debugBreak();
|
||||
#else
|
||||
::sched_yield();
|
||||
@@ -224,7 +226,8 @@ namespace bx
|
||||
return result;
|
||||
#elif BX_PLATFORM_PS4 \
|
||||
|| BX_PLATFORM_XBOXONE \
|
||||
|| BX_PLATFORM_WINRT
|
||||
|| BX_PLATFORM_WINRT \
|
||||
|| BX_CRT_NONE
|
||||
BX_UNUSED(_name, _out, _inOutSize);
|
||||
return false;
|
||||
#else
|
||||
@@ -253,7 +256,8 @@ namespace bx
|
||||
::SetEnvironmentVariableA(_name, _value);
|
||||
#elif BX_PLATFORM_PS4 \
|
||||
|| BX_PLATFORM_XBOXONE \
|
||||
|| BX_PLATFORM_WINRT
|
||||
|| BX_PLATFORM_WINRT \
|
||||
|| BX_CRT_NONE
|
||||
BX_UNUSED(_name, _value);
|
||||
#else
|
||||
::setenv(_name, _value, 1);
|
||||
@@ -266,7 +270,8 @@ namespace bx
|
||||
::SetEnvironmentVariableA(_name, NULL);
|
||||
#elif BX_PLATFORM_PS4 \
|
||||
|| BX_PLATFORM_XBOXONE \
|
||||
|| BX_PLATFORM_WINRT
|
||||
|| BX_PLATFORM_WINRT \
|
||||
|| BX_CRT_NONE
|
||||
BX_UNUSED(_name);
|
||||
#else
|
||||
::unsetenv(_name);
|
||||
@@ -277,7 +282,8 @@ namespace bx
|
||||
{
|
||||
#if BX_PLATFORM_PS4 \
|
||||
|| BX_PLATFORM_XBOXONE \
|
||||
|| BX_PLATFORM_WINRT
|
||||
|| BX_PLATFORM_WINRT \
|
||||
|| BX_CRT_NONE
|
||||
BX_UNUSED(_path);
|
||||
return -1;
|
||||
#elif BX_CRT_MSVC
|
||||
|
||||
Reference in New Issue
Block a user