lua/lvm.h

30 lines
714 B
C
Raw Normal View History

1997-09-17 03:25:59 +08:00
/*
** $Id: lvm.h,v 1.2 1997/09/26 15:02:26 roberto Exp roberto $
1997-09-17 03:25:59 +08:00
** Lua virtual machine
** See Copyright Notice in lua.h
*/
#ifndef lvm_h
#define lvm_h
#include "ldo.h"
#include "lobject.h"
#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);
void luaV_gettable (void);
void luaV_settable (TObject *t, int mode);
void luaV_getglobal (TaggedString *ts);
void luaV_setglobal (TaggedString *ts);
1997-09-17 03:25:59 +08:00
StkId luaV_execute (Closure *func, StkId base);
void luaV_closure (int nelems);
1997-09-17 03:25:59 +08:00
#endif