-
Notifications
You must be signed in to change notification settings - Fork 80
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
Conversation
@@ -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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strerror(errno)
?
Some cross-platform code cleanups.
Fixes for MinGW and clang with HS_DEBUGGING enabled.