src/lxplib.c
/*
** Auxiliary function to call a Lua handle
*/
Auxiliary function to call a Lua handle
Auxiliary function to call a Lua handle
static void docall (lxp_userdata *xpu, int nargs, int nres) {
  lua_State *L = xpu->L;
  assert(xpu->state == XPSok);
  if (lua_pcall(L, nargs + 1, nres, 0) != 0) {
    xpu->state = XPSerror;
    xpu->errorref = luaL_ref(L, LUA_REGISTRYINDEX);  
  }
}
static void docall ( lxp_userdata * xpu , int nargs , int nres ) { lua_State * L = xpu -> L ; assert ( xpu -> state == XPSok ) ; if ( lua_pcall ( L , nargs + 1 , nres , 0 ) != 0 ) { xpu -> state = XPSerror ; xpu -> errorref = luaL_ref ( L , LUA_REGISTRYINDEX ) ; } }
Auxiliary function to call a Lua handle
Auxiliary function to call a Lua handle
/* error message */