forked from petrihakkinen/lua-array
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlarray.h
More file actions
22 lines (16 loc) · 645 Bytes
/
larray.h
File metadata and controls
22 lines (16 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
** Lua arrays
** See Copyright Notice in lua.h
*/
#ifndef larray_h
#define larray_h
#include "lobject.h"
#define luaH_emptyobject (&luaH_emptyobject_)
LUAI_FUNC Array *luaA_new (lua_State *L);
LUAI_FUNC void luaA_resize (lua_State *L, Array *a, unsigned int nsize);
LUAI_FUNC void luaA_free (lua_State *L, Array *a);
LUAI_FUNC const TValue *luaA_getint (Array *a, lua_Integer key);
LUAI_FUNC void luaA_setint (lua_State *L, Array *a, lua_Integer key, TValue *value);
LUAI_FUNC const TValue *luaA_get (lua_State *L, Array *a, const TValue *key);
LUAI_FUNC void luaA_set (lua_State *L, Array *a, const TValue *key, TValue *value);
#endif