new implementation for error handling

This commit is contained in:
Roberto Ierusalimschy
2002-08-05 14:36:24 -03:00
parent 1c0ac3c0f5
commit 4e23699aa6
9 changed files with 279 additions and 259 deletions

9
lvm.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lvm.h,v 1.43 2002/06/24 13:08:45 roberto Exp roberto $
** $Id: lvm.h,v 1.44 2002/07/05 18:27:39 roberto Exp $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -22,6 +22,13 @@
(ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2))
/*
** dummy addrees, to mark Lua functions calling other Lua functions (and
** therefore without a valid `pc'
*/
extern Instruction const *luaV_callingmark;
int luaV_lessthan (lua_State *L, const TObject *l, const TObject *r);
int luaV_equalval (lua_State *L, const TObject *t1, const TObject *t2);
const TObject *luaV_tonumber (const TObject *obj, TObject *n);