That seems exactly what I need, the good thing is that it becomes portable to lua 5.2. Thanks Ignacio! On Wed, Oct 8, 2014 at 9:15 AM, Ignacio Burgueño <iburgueno@gmail.com> wrote: > Why don't you take a look at coxpcall? It seems it does what you need. > > https://lua-toolbox.com/module/249 > https://github.com/keplerproject/coxpcall