Unrelated: add DUMMY_TAG to help with debugging

This commit is contained in:
Mm2PL 2024-09-02 20:21:56 +02:00
parent a69bb3896f
commit b83f49ff63
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

View file

@ -40,6 +40,12 @@ constexpr int ERROR_BAD_PEEK = LUA_OK - 1;
*/
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
*/