summaryrefslogtreecommitdiffstats
path: root/src/lib-lua/dlua-error.c
blob: 90011ed1d7c0b9405f501f93c4606738f712e93e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Copyright (c) 2021 Dovecot authors, see the included COPYING file */

#include "lib.h"
#include "dlua-script-private.h"

int dluaL_error(lua_State *L, const char *fmt, ...)
{
	va_list argp;
	va_start(argp, fmt);
	(void)dlua_push_vfstring(L, fmt, argp);
	va_end(argp);
	return lua_error(L);
}