diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-03-24 11:46:30 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-03-24 11:46:30 +0100 |
| commit | 4c4bd8ef68655f28c11b20bc35ccce0063744c19 (patch) | |
| tree | e1e50260768a3ea562579b32bc7b5adaadc340cc /vis-lua.c | |
| parent | d44ae5817c9210c89c584aa837a400e13f423804 (diff) | |
| download | vis-4c4bd8ef68655f28c11b20bc35ccce0063744c19.tar.gz vis-4c4bd8ef68655f28c11b20bc35ccce0063744c19.tar.xz | |
vis-lua: use better name for error handling function
Diffstat (limited to 'vis-lua.c')
| -rw-r--r-- | vis-lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
