Initial commit
This commit is contained in:
30
engines/grim/lua/lvm.h
Normal file
30
engines/grim/lua/lvm.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
** Lua virtual machine
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
#ifndef GRIM_LVM_H
|
||||
#define GRIM_LVM_H
|
||||
|
||||
|
||||
#include "engines/grim/lua/ldo.h"
|
||||
#include "engines/grim/lua/lobject.h"
|
||||
|
||||
namespace Grim {
|
||||
|
||||
#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, int32 nvararg, TObject *tab);
|
||||
int32 luaV_tonumber(TObject *obj);
|
||||
int32 luaV_tostring(TObject *obj);
|
||||
void luaV_gettable();
|
||||
void luaV_settable(TObject *t, int32 mode);
|
||||
void luaV_getglobal(TaggedString *ts);
|
||||
void luaV_setglobal(TaggedString *ts);
|
||||
void luaV_closure(int32 nelems);
|
||||
|
||||
} // end of namespace Grim
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user