Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
18da49d4
Commit
18da49d4
authored
May 11, 2015
by
ctrlaltca
Browse files
Merge pull request #1068 from ctrlaltca/fix_1063
Fix macro for MSVC; fix #1063
parents
50ab6295
590894d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/serversocketinterface.cpp
View file @
18da49d4
...
@@ -164,14 +164,24 @@ void ServerSocketInterface::readClient()
...
@@ -164,14 +164,24 @@ void ServerSocketInterface::readClient()
newCommandContainer
.
ParseFromArray
(
inputBuffer
.
data
(),
messageLength
);
newCommandContainer
.
ParseFromArray
(
inputBuffer
.
data
(),
messageLength
);
}
}
catch
(
std
::
exception
&
e
)
{
catch
(
std
::
exception
&
e
)
{
qDebug
()
<<
"Caught std::exception in"
<<
__FILE__
<<
__LINE__
<<
__PRETTY_FUNCTION__
;
qDebug
()
<<
"Caught std::exception in"
<<
__FILE__
<<
__LINE__
<<
#ifdef _MSC_VER // Visual Studio
__FUNCTION__
;
#else
__PRETTY_FUNCTION__
;
#endif
qDebug
()
<<
"Exception:"
<<
e
.
what
();
qDebug
()
<<
"Exception:"
<<
e
.
what
();
qDebug
()
<<
"Message coming from:"
<<
getAddress
();
qDebug
()
<<
"Message coming from:"
<<
getAddress
();
qDebug
()
<<
"Message length:"
<<
messageLength
;
qDebug
()
<<
"Message length:"
<<
messageLength
;
qDebug
()
<<
"Message content:"
<<
inputBuffer
.
toHex
();
qDebug
()
<<
"Message content:"
<<
inputBuffer
.
toHex
();
}
}
catch
(...)
{
catch
(...)
{
qDebug
()
<<
"Unhandled exception in"
<<
__FILE__
<<
__LINE__
<<
__PRETTY_FUNCTION__
;
qDebug
()
<<
"Unhandled exception in"
<<
__FILE__
<<
__LINE__
<<
#ifdef _MSC_VER // Visual Studio
__FUNCTION__
;
#else
__PRETTY_FUNCTION__
;
#endif
qDebug
()
<<
"Message coming from:"
<<
getAddress
();
qDebug
()
<<
"Message coming from:"
<<
getAddress
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment