summaryrefslogtreecommitdiff
path: root/src/honeysuckle/hs_throw_error.c
blob: 20a4c6d94fd3499162b677085d8baf5ffe0bf77c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdlib.h>

#include "honeysuckle.h"

void hs_throw_error(lua_State *L, const char *format_string, ...)
{
   va_list args;
   va_start(args, format_string);
   hs_vpushstring(L, format_string, args);
   va_end(args);
   lua_error(L);
}