ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ltable.h
1 /*
2 ** Lua tables (hash)
3 ** See Copyright Notice in lua.h
4 */
5 
6 #ifndef GRIM_LTABLE_H
7 #define GRIM_LTABLE_H
8 
9 #include "engines/grim/lua/lobject.h"
10 
11 namespace Grim {
12 
13 #define node(t, i) (&(t)->node[i])
14 #define ref(n) (&(n)->ref)
15 #define val(n) (&(n)->val)
16 #define nhash(t) ((t)->nhash)
17 
18 Hash *luaH_new(int32 nhash);
19 void luaH_free(Hash *frees);
20 TObject *luaH_get(Hash *t, TObject *r);
21 TObject *luaH_set(Hash *t, TObject *r);
22 Node *luaH_next(TObject *o, TObject *r);
23 Node *hashnodecreate(int32 nhash);
24 int32 present(Hash *t, TObject *key);
25 
26 } // end of namespace Grim
27 
28 #endif
Definition: actor.h:33
Definition: lobject.h:332