From 4c4bd8ef68655f28c11b20bc35ccce0063744c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 24 Mar 2017 11:46:30 +0100 Subject: vis-lua: use better name for error handling function --- vis-lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vis-lua.c') diff --git a/vis-lua.c b/vis-lua.c index 6ec6973..7099af3 100644 --- a/vis-lua.c +++ b/vis-lua.c @@ -221,7 +221,7 @@ static void stack_dump(lua_State *L, const char *format, ...) { #endif -static int error_function(lua_State *L) { +static int error_handler(lua_State *L) { Vis *vis = lua_touserdata(L, lua_upvalueindex(1)); if (vis->errorhandler) return 1; @@ -240,7 +240,7 @@ static int pcall(Vis *vis, lua_State *L, int nargs, int nresults) { /* insert a custom error function below all arguments */ int msgh = lua_gettop(L) - nargs; lua_pushlightuserdata(L, vis); - lua_pushcclosure(L, error_function, 1); + lua_pushcclosure(L, error_handler, 1); lua_insert(L, msgh); int ret = lua_pcall(L, nargs, nresults, msgh); lua_remove(L, msgh); -- cgit v1.2.3