lua/lvm.h

35 lines
943 B
C
Raw Normal View History

1997-09-16 12:25:59 -07:00
/*
** $Id: lvm.h,v 1.10 1999/10/14 19:46:57 roberto Exp roberto $
1997-09-16 12:25:59 -07:00
** Lua virtual machine
** See Copyright Notice in lua.h
*/
#ifndef lvm_h
#define lvm_h
#include "ldo.h"
#include "lobject.h"
#include "ltm.h"
1997-09-16 12:25:59 -07: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 05:16:50 -08:00
void luaV_setn (Hash *t, int val);
1997-09-16 12:25:59 -07:00
void luaV_gettable (void);
1999-08-16 13:52:00 -07:00
void luaV_settable (const TObject *t);
void luaV_rawsettable (const TObject *t);
void luaV_getglobal (GlobalVar *gv);
void luaV_setglobal (GlobalVar *gv);
1999-10-14 12:46:57 -07:00
StkId luaV_execute (const Closure *cl, const TProtoFunc *tf, StkId base);
void luaV_closure (int nelems);
void luaV_comparison (lua_Type ttype_less, lua_Type ttype_equal,
lua_Type ttype_great, IMS op);
1997-09-16 12:25:59 -07:00
#endif