Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
51a22cbe
Commit
51a22cbe
authored
Oct 05, 2009
by
Oswald Buddenhagen
Browse files
centralize STRINGIFY definition
parent
f42ad24d
Changes
8
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerstringutils.h
View file @
51a22cbe
...
...
@@ -40,6 +40,9 @@ typedef QLatin1String __;
inline
QString
_
(
const
char
*
s
)
{
return
QString
::
fromLatin1
(
s
);
}
inline
QString
_
(
const
QByteArray
&
ba
)
{
return
QString
::
fromLatin1
(
ba
,
ba
.
size
());
}
#define STRINGIFY_INTERNAL(x) #x
#define STRINGIFY(x) STRINGIFY_INTERNAL(x)
}
// namespace Internal
}
// namespace Debugger
#endif // DEBUGGERSTRINGUTILS_H
src/plugins/debugger/gdb/attachgdbadapter.cpp
View file @
51a22cbe
...
...
@@ -40,8 +40,6 @@
namespace
Debugger
{
namespace
Internal
{
#define STRINGIFY_INTERNAL(x) #x
#define STRINGIFY(x) STRINGIFY_INTERNAL(x)
#define CB(callback) \
static_cast<GdbEngine::AdapterCallback>(&AttachGdbAdapter::callback), \
STRINGIFY(callback)
...
...
src/plugins/debugger/gdb/coregdbadapter.cpp
View file @
51a22cbe
...
...
@@ -40,8 +40,6 @@
namespace
Debugger
{
namespace
Internal
{
#define STRINGIFY_INTERNAL(x) #x
#define STRINGIFY(x) STRINGIFY_INTERNAL(x)
#define CB(callback) \
static_cast<GdbEngine::AdapterCallback>(&CoreGdbAdapter::callback), \
STRINGIFY(callback)
...
...
src/plugins/debugger/gdb/gdbengine.cpp
View file @
51a22cbe
...
...
@@ -105,8 +105,6 @@ namespace Internal {
# define PENDING_DEBUG(s)
#endif
#define STRINGIFY_INTERNAL(x) #x
#define STRINGIFY(x) STRINGIFY_INTERNAL(x)
#define CB(callback) &GdbEngine::callback, STRINGIFY(callback)
static
bool
stateAcceptsGdbCommands
(
DebuggerState
state
)
...
...
src/plugins/debugger/gdb/plaingdbadapter.cpp
View file @
51a22cbe
...
...
@@ -45,8 +45,6 @@
namespace
Debugger
{
namespace
Internal
{
#define STRINGIFY_INTERNAL(x) #x
#define STRINGIFY(x) STRINGIFY_INTERNAL(x)
#define CB(callback) \
static_cast<GdbEngine::AdapterCallback>(&PlainGdbAdapter::callback), \
STRINGIFY(callback)
...
...
src/plugins/debugger/gdb/remotegdbadapter.cpp
View file @
51a22cbe
...
...
@@ -41,8 +41,6 @@
namespace
Debugger
{
namespace
Internal
{
#define STRINGIFY_INTERNAL(x) #x
#define STRINGIFY(x) STRINGIFY_INTERNAL(x)
#define CB(callback) \
static_cast<GdbEngine::AdapterCallback>(&RemoteGdbAdapter::callback), \
STRINGIFY(callback)
...
...
src/plugins/debugger/gdb/trkgdbadapter.cpp
View file @
51a22cbe
...
...
@@ -46,8 +46,6 @@
#include
<QtCore/QTimer>
#include
<QtCore/QDir>
#define STRINGIFY_INTERNAL(x) #x
#define STRINGIFY(x) STRINGIFY_INTERNAL(x)
#define CB(callback) \
static_cast<GdbEngine::AdapterCallback>(&TrkGdbAdapter::callback), \
STRINGIFY(callback)
...
...
src/plugins/debugger/tcf/tcfengine.cpp
View file @
51a22cbe
...
...
@@ -66,8 +66,6 @@
#endif
# define XSDEBUG(s) qDebug() << s
#define STRINGIFY_INTERNAL(x) #x
#define STRINGIFY(x) STRINGIFY_INTERNAL(x)
#define CB(callback) &TcfEngine::callback, STRINGIFY(callback)
//#define USE_CONGESTION_CONTROL
...
...
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