aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-03-24 11:46:30 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-03-24 11:46:30 +0100
commit4c4bd8ef68655f28c11b20bc35ccce0063744c19 (patch)
treee1e50260768a3ea562579b32bc7b5adaadc340cc
parentd44ae5817c9210c89c584aa837a400e13f423804 (diff)
downloadvis-4c4bd8ef68655f28c11b20bc35ccce0063744c19.tar.gz
vis-4c4bd8ef68655f28c11b20bc35ccce0063744c19.tar.xz
vis-lua: use better name for error handling function
-rw-r--r--vis-lua.c4
1 files changed, 2 insertions, 2 deletions
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);