]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lua: Use dluaL_error for luaL_error
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 19 Apr 2021 11:45:56 +0000 (14:45 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 12 May 2021 09:06:46 +0000 (09:06 +0000)
src/lib-lua/dlua-script-private.h

index 8fde84e3765e2104f6d81e74165c147ea7bb112a..f15f883494373ca290f7e4c30a1791f3b27bdda9 100644 (file)
@@ -107,6 +107,7 @@ const char *dlua_pushfstring(lua_State *L, const char *fmt, ...) ATTR_FORMAT(2,
 
 /* improved luaL_error, can handle full C format support */
 int dluaL_error(lua_State *L, const char *fmt, ...) ATTR_FORMAT(2, 3);
+#define luaL_error(...) dluaL_error(__VA_ARGS__)
 
 /*
  * Returns field from a Lua table