From 751cd867d3e0338279fa6f3390c8b7ddc0108659 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 1 May 2002 17:48:12 -0300 Subject: new way to handle errors --- ldo.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ldo.h') diff --git a/ldo.h b/ldo.h index 5464e544..0c4dfbca 100644 --- a/ldo.h +++ b/ldo.h @@ -1,5 +1,5 @@ /* -** $Id: ldo.h,v 1.42 2002/03/25 17:47:14 roberto Exp roberto $ +** $Id: ldo.h,v 1.43 2002/04/22 14:40:50 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -42,8 +42,9 @@ void luaD_reallocstack (lua_State *L, int newsize); void luaD_growstack (lua_State *L, int n); void luaD_error (lua_State *L, const char *s, int errcode); +void luaD_errorobj (lua_State *L, const TObject *s, int errcode); void luaD_runerror (lua_State *L, const char *s); -int luaD_runprotected (lua_State *L, Pfunc f, const TObject *err, void *ud); +int luaD_runprotected (lua_State *L, Pfunc f, TObject *ud); #endif -- cgit v1.2.3-55-g6feb