ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

lua.h File Reference

#include "common/scummsys.h"
#include "common/str.h"
Include dependency graph for lua.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  Grim::PointerId
class  Grim::LuaFile


namespace  Common

Internal interface to the QuickTime audio decoder.

namespace  Grim


#define LUA_VERSION   "Lua 3.1 (alpha)"
#define LUA_COPYRIGHT   "Copyright (C) 1994-1998 TeCGraf, PUC-Rio"
#define LUA_AUTHORS   "W. Celes, R. Ierusalimschy & L. H. de Figueiredo"
#define LUA_NOOBJECT   0
#define LUA_ANYTAG   (-1)
#define lua_getparam(_)   lua_lua2C(_)
#define lua_getresult(_)   lua_lua2C(_)
#define lua_call(name)   lua_callfunction(lua_getglobal(name))
#define lua_pushref(ref)   lua_pushobject(lua_getref(ref))
#define lua_refobject(o, l)   (lua_pushobject(o), lua_ref(l))
#define lua_register(n, f)   (lua_pushcfunction(f), lua_setglobal(n))
#define lua_pushuserdata(u)   lua_pushusertag(u, 0)
#define lua_pushcfunction(f)   lua_pushCclosure(f, 0)
#define lua_clonetag(t)   lua_copytagmethods(lua_newtag(), (t))
#define LUA_COMPAT2_5
#define lua_storeglobal   lua_setglobal
#define lua_type   lua_tag
#define lua_lockobject(o)   lua_refobject(o,1)
#define lua_lock()   lua_ref(1)
#define lua_getlocked   lua_getref
#define lua_pushlocked   lua_pushref
#define lua_unlock   lua_unref
#define lua_pushliteral(o)   lua_pushstring(o)
#define lua_getindexed(o, n)   (lua_pushobject(o), lua_pushnumber(n), lua_gettable())
#define lua_getfield(o, f)   (lua_pushobject(o), lua_pushstring(f), lua_gettable())
#define lua_copystring(o)   (strdup(lua_getstring(o)))
#define lua_getsubscript   lua_gettable
#define lua_storesubscript   lua_settable


typedef void(* Grim::lua_CFunction )()
typedef uint32 Grim::lua_Object


PointerId Grim::makeIdFromPointer (void *ptr)
void * Grim::makePointerFromId (PointerId ptr)
void Grim::lua_Save (SaveGame *savedState)
void Grim::lua_Restore (SaveGame *savedState)
void Grim::lua_removelibslists ()
void Grim::lua_open ()
void Grim::lua_close ()
bool Grim::lua_isopen ()
lua_Object Grim::lua_settagmethod (int32 tag, const char *event)
lua_Object Grim::lua_gettagmethod (int32 tag, const char *event)
lua_Object Grim::lua_seterrormethod ()
int32 Grim::lua_newtag ()
int32 Grim::lua_copytagmethods (int32 tagto, int32 tagfrom)
void Grim::lua_settag (int32 tag)
void Grim::lua_error (const char *s)
int32 Grim::lua_dostring (const char *str)
int32 Grim::lua_dobuffer (const char *buff, int32 size, const char *name)
int32 Grim::lua_callfunction (lua_Object function)
void Grim::lua_beginblock ()
void Grim::lua_endblock ()
lua_Object Grim::lua_lua2C (int32 number)
int32 Grim::lua_isnil (lua_Object o)
int32 Grim::lua_istable (lua_Object o)
int32 Grim::lua_isuserdata (lua_Object o)
int32 Grim::lua_iscfunction (lua_Object o)
int32 Grim::lua_isnumber (lua_Object o)
int32 Grim::lua_isstring (lua_Object o)
int32 Grim::lua_isfunction (lua_Object o)
float Grim::lua_getnumber (lua_Object object)
const char * Grim::lua_getstring (lua_Object object)
lua_CFunction Grim::lua_getcfunction (lua_Object object)
int32 Grim::lua_getuserdata (lua_Object object)
void Grim::lua_pushnil ()
void Grim::lua_pushnumber (float n)
void Grim::lua_pushstring (const char *s)
void Grim::lua_pushCclosure (lua_CFunction fn, int32 n)
void Grim::lua_pushusertag (int32 u, int32 tag)
void Grim::lua_pushobject (lua_Object o)
lua_Object Grim::lua_pop ()
lua_Object Grim::lua_getglobal (const char *name)
lua_Object Grim::lua_rawgetglobal (const char *name)
void Grim::lua_setglobal (const char *name)
void Grim::lua_rawsetglobal (const char *name)
void Grim::lua_settable ()
void Grim::lua_rawsettable ()
lua_Object Grim::lua_gettable ()
lua_Object Grim::lua_rawgettable ()
int32 Grim::lua_tag (lua_Object lo)
int32 Grim::lua_ref (int32 lock)
lua_Object Grim::lua_getref (int32 r)
void Grim::lua_unref (int32 r)
lua_Object Grim::lua_createtable ()
int32 Grim::lua_collectgarbage (int32 limit)
void Grim::lua_runtasks ()
void Grim::current_script ()
lua_Object Grim::lua_setfallback (const char *event, lua_CFunction fallback)

Define Documentation

#define LUA_ANYTAG   (-1)

Definition at line 30 of file lua.h.

#define LUA_AUTHORS   "W. Celes, R. Ierusalimschy & L. H. de Figueiredo"

Definition at line 26 of file lua.h.

#define lua_call (   name  )     lua_callfunction(lua_getglobal(name))

Definition at line 138 of file lua.h.

#define lua_clonetag (   t  )     lua_copytagmethods(lua_newtag(), (t))

Definition at line 150 of file lua.h.

#define LUA_COMPAT2_5

Definition at line 156 of file lua.h.

#define LUA_COPYRIGHT   "Copyright (C) 1994-1998 TeCGraf, PUC-Rio"

Definition at line 25 of file lua.h.

#define lua_copystring (   o  )     (strdup(lua_getstring(o)))

Definition at line 173 of file lua.h.

#define lua_getfield (   o,
)    (lua_pushobject(o), lua_pushstring(f), lua_gettable())

Definition at line 172 of file lua.h.

#define lua_getindexed (   o,
)    (lua_pushobject(o), lua_pushnumber(n), lua_gettable())

Definition at line 171 of file lua.h.

#define lua_getlocked   lua_getref

Definition at line 167 of file lua.h.

#define lua_getparam (   _  )     lua_lua2C(_)

Definition at line 90 of file lua.h.

#define lua_getresult (   _  )     lua_lua2C(_)

Definition at line 91 of file lua.h.

#define lua_getsubscript   lua_gettable

Definition at line 174 of file lua.h.

#define lua_lock (  )     lua_ref(1)

Definition at line 166 of file lua.h.

#define lua_lockobject (   o  )     lua_refobject(o,1)

Definition at line 165 of file lua.h.

#define LUA_NOOBJECT   0

Definition at line 28 of file lua.h.

#define lua_pushcfunction (   f  )     lua_pushCclosure(f, 0)

Definition at line 148 of file lua.h.

#define lua_pushliteral (   o  )     lua_pushstring(o)

Definition at line 170 of file lua.h.

#define lua_pushlocked   lua_pushref

Definition at line 168 of file lua.h.

#define lua_pushref (   ref  )     lua_pushobject(lua_getref(ref))

Definition at line 140 of file lua.h.

#define lua_pushuserdata (   u  )     lua_pushusertag(u, 0)

Definition at line 146 of file lua.h.

#define lua_refobject (   o,
)    (lua_pushobject(o), lua_ref(l))

Definition at line 142 of file lua.h.

#define lua_register (   n,
)    (lua_pushcfunction(f), lua_setglobal(n))

Definition at line 144 of file lua.h.

#define lua_storeglobal   lua_setglobal

Definition at line 162 of file lua.h.

#define lua_storesubscript   lua_settable

Definition at line 175 of file lua.h.

#define lua_type   lua_tag

Definition at line 163 of file lua.h.

#define lua_unlock   lua_unref

Definition at line 169 of file lua.h.

#define LUA_VERSION   "Lua 3.1 (alpha)"

Definition at line 24 of file lua.h.

Generated on Sat Sep 19 2020 05:02:47 for ResidualVM by doxygen 1.7.1
curved edge   curved edge