1997-09-16 23:25:59 +04:00
|
|
|
/*
|
1999-02-08 20:07:59 +03:00
|
|
|
** $Id: lvm.h,v 1.7 1998/12/30 17:26:49 roberto Exp roberto $
|
1997-09-16 23:25:59 +04:00
|
|
|
** Lua virtual machine
|
|
|
|
** See Copyright Notice in lua.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef lvm_h
|
|
|
|
#define lvm_h
|
|
|
|
|
|
|
|
|
|
|
|
#include "ldo.h"
|
|
|
|
#include "lobject.h"
|
1998-07-12 20:16:43 +04:00
|
|
|
#include "ltm.h"
|
1997-09-16 23:25:59 +04:00
|
|
|
|
|
|
|
|
|
|
|
#define tonumber(o) ((ttype(o) != LUA_T_NUMBER) && (luaV_tonumber(o) != 0))
|
|
|
|
#define tostring(o) ((ttype(o) != LUA_T_STRING) && (luaV_tostring(o) != 0))
|
|
|
|
|
|
|
|
|
|
|
|
void luaV_pack (StkId firstel, int nvararg, TObject *tab);
|
|
|
|
int luaV_tonumber (TObject *obj);
|
|
|
|
int luaV_tostring (TObject *obj);
|
1998-12-30 16:16:50 +03:00
|
|
|
void luaV_setn (Hash *t, int val);
|
1997-09-16 23:25:59 +04:00
|
|
|
void luaV_gettable (void);
|
1999-02-08 20:07:59 +03:00
|
|
|
void luaV_settable (TObject *t);
|
1998-12-30 20:26:49 +03:00
|
|
|
void luaV_rawsettable (TObject *t);
|
1997-09-26 19:02:26 +04:00
|
|
|
void luaV_getglobal (TaggedString *ts);
|
|
|
|
void luaV_setglobal (TaggedString *ts);
|
1997-12-15 19:17:20 +03:00
|
|
|
StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base);
|
1997-10-16 14:59:34 +04:00
|
|
|
void luaV_closure (int nelems);
|
1998-07-12 20:16:43 +04:00
|
|
|
void luaV_comparison (lua_Type ttype_less, lua_Type ttype_equal,
|
|
|
|
lua_Type ttype_great, IMS op);
|
1997-09-16 23:25:59 +04:00
|
|
|
|
|
|
|
#endif
|