Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some cross-platform code cleanups. #460

Merged
merged 7 commits into from
Feb 14, 2015
Merged

Some cross-platform code cleanups. #460

merged 7 commits into from
Feb 14, 2015

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Nov 2, 2014

Fixes for MinGW and clang with HS_DEBUGGING enabled.

@@ -119,13 +119,13 @@ void ErrorAssert(int line, const char* file, const char* fmt, ...)
va_list args;
va_start(args, fmt);
vsnprintf(msg, arrsize(msg), fmt, args);
#ifdef HS_DEBUGGING
#ifdef _MSC_VER
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking if something is compiled on MSVC is not the same as checking whether debugging is enabled... I'm not quire sure I understand what this change is supposed to be doing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two lines above the diff is #if defined(HS_DEBUGGING) || !defined(PLASMA_EXTERNAL_RELEASE)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct. Building an Internal client now leads to the call of _CrtDbgReport in Line 125. However, that function is not defined when not building in Debug mode and we get a compiler error.

@dpogue
Copy link
Member Author

dpogue commented Feb 9, 2015

This has been updated to address the HS_DEBUGGING problems.

@@ -325,7 +325,10 @@ uint32_t plSecureStream::IRead(uint32_t bytes, void* buffer)
}
else
{
// TODO: errno equivalent for *nix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strerror(errno) ?

zrax added a commit that referenced this pull request Feb 14, 2015
Some cross-platform code cleanups.
@zrax zrax merged commit 86717a9 into H-uru:master Feb 14, 2015
@dpogue dpogue deleted the fixes branch February 14, 2015 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants