File: lvm.h

package info (click to toggle)
residualvm 0.3.1%2Bdfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: bullseye
  • size: 31,292 kB
  • sloc: cpp: 227,029; sh: 7,256; xml: 1,731; perl: 1,067; java: 861; asm: 738; python: 691; ansic: 272; makefile: 139; objc: 81; sed: 22; php: 1
file content (30 lines) | stat: -rw-r--r-- 691 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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