mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Unrelated: add DUMMY_TAG to help with debugging
This commit is contained in:
parent
a69bb3896f
commit
b83f49ff63
|
@ -40,6 +40,12 @@ constexpr int ERROR_BAD_PEEK = LUA_OK - 1;
|
||||||
*/
|
*/
|
||||||
void stackDump(lua_State *L, const QString &tag);
|
void stackDump(lua_State *L, const QString &tag);
|
||||||
|
|
||||||
|
# ifndef NDEBUG
|
||||||
|
// This is for debugging with the use of stackDump because creating a QString
|
||||||
|
// with gdb is more painful than it should be
|
||||||
|
const QString DUMMY_TAG = "DUMMY";
|
||||||
|
# endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Converts a lua error code and potentially string on top of the stack into a human readable message
|
* @brief Converts a lua error code and potentially string on top of the stack into a human readable message
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue