Skip to content
Snippets Groups Projects
Commit 49059e4a authored by Marek Vavruša's avatar Marek Vavruša
Browse files

modules/stats: compat for Lua < 5.2

parent 410ca592
Branches
Tags
No related merge requests found
......@@ -30,6 +30,11 @@
#include "lib/module.h"
#include "lib/layer.h"
/** @internal Compatibility wrapper for Lua < 5.2 */
#if LUA_VERSION_NUM < 502
#define lua_rawlen(L, obj) lua_objlen((L), (obj))
#endif
/* Defaults */
#define DEBUG_MSG(qry, fmt...) QRDEBUG(qry, "stat", fmt)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment