mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Merge pull request #56 from mendsley/return_values
Add return values to setenv/getcwd
This commit is contained in:
@@ -164,6 +164,7 @@ namespace bx
|
||||
{
|
||||
#if BX_PLATFORM_WINRT
|
||||
BX_UNUSED(_path);
|
||||
return -1;
|
||||
#elif BX_COMPILER_MSVC_COMPATIBLE
|
||||
return ::_chdir(_path);
|
||||
#else
|
||||
@@ -175,6 +176,7 @@ namespace bx
|
||||
{
|
||||
#if BX_PLATFORM_WINRT
|
||||
BX_UNUSED(_buffer, _size);
|
||||
return NULL;
|
||||
#elif BX_COMPILER_MSVC_COMPATIBLE
|
||||
return ::_getcwd(_buffer, (int)_size);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user