Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ceguilua/src/lua-5.0.3/lua/lvm.h @ 1803

Last change on this file since 1803 was 1803, checked in by rgrieder, 16 years ago

added files for lua 5.1.3, lua 5.0.3, CEGUILua-0.6.1 and CEGUILua-0.5.0b

  • Property svn:eol-style set to native
File size: 1023 bytes
Line 
1/*
2** $Id: lvm.h,v 1.47 2002/11/14 16:16:21 roberto Exp $
3** Lua virtual machine
4** See Copyright Notice in lua.h
5*/
6
7#ifndef lvm_h
8#define lvm_h
9
10
11#include "ldo.h"
12#include "lobject.h"
13#include "ltm.h"
14
15
16#define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o)))
17
18#define tonumber(o,n)   (ttype(o) == LUA_TNUMBER || \
19                         (((o) = luaV_tonumber(o,n)) != NULL))
20
21#define equalobj(L,o1,o2) \
22        (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2))
23
24
25int luaV_lessthan (lua_State *L, const TObject *l, const TObject *r);
26int luaV_equalval (lua_State *L, const TObject *t1, const TObject *t2);
27const TObject *luaV_tonumber (const TObject *obj, TObject *n);
28int luaV_tostring (lua_State *L, StkId obj);
29const TObject *luaV_gettable (lua_State *L, const TObject *t, TObject *key,
30                              int loop);
31void luaV_settable (lua_State *L, const TObject *t, TObject *key, StkId val);
32StkId luaV_execute (lua_State *L);
33void luaV_concat (lua_State *L, int total, int last);
34
35#endif
Note: See TracBrowser for help on using the repository browser.