aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-02-11 09:40:01 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-02-11 09:40:01 -0200
commit205ee1ec84c0f0e9c2df923fdcfa29207e8e72b3 (patch)
tree1e2683e673e5fbf2230343df4faac3b252eee38c /lua.h
parentb48847c5fac055f0d6120029f6fe1a50c852a8ac (diff)
downloadlua-205ee1ec84c0f0e9c2df923fdcfa29207e8e72b3.tar.gz
lua-205ee1ec84c0f0e9c2df923fdcfa29207e8e72b3.tar.bz2
lua-205ee1ec84c0f0e9c2df923fdcfa29207e8e72b3.zip
userdata can handle arbitrary binary data;
user tag is stored with data;
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lua.h b/lua.h
index f19a1351..459f87c0 100644
--- a/lua.h
+++ b/lua.h
@@ -2,14 +2,14 @@
2** LUA - Linguagem para Usuarios de Aplicacao 2** LUA - Linguagem para Usuarios de Aplicacao
3** Grupo de Tecnologia em Computacao Grafica 3** Grupo de Tecnologia em Computacao Grafica
4** TeCGraf - PUC-Rio 4** TeCGraf - PUC-Rio
5** $Id: lua.h,v 3.31 1996/11/12 16:00:16 roberto Exp roberto $ 5** $Id: lua.h,v 3.32 1996/11/20 13:49:32 roberto Exp roberto $
6*/ 6*/
7 7
8 8
9#ifndef lua_h 9#ifndef lua_h
10#define lua_h 10#define lua_h
11 11
12#define LUA_VERSION "Lua 2.5.1" 12#define LUA_VERSION "Lua 2.?"
13#define LUA_COPYRIGHT "Copyright (C) 1994-1996 TeCGraf" 13#define LUA_COPYRIGHT "Copyright (C) 1994-1996 TeCGraf"
14#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" 14#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo"
15 15
@@ -63,12 +63,15 @@ int lua_isfunction (lua_Object object);
63float lua_getnumber (lua_Object object); 63float lua_getnumber (lua_Object object);
64char *lua_getstring (lua_Object object); 64char *lua_getstring (lua_Object object);
65lua_CFunction lua_getcfunction (lua_Object object); 65lua_CFunction lua_getcfunction (lua_Object object);
66void *lua_getbinarydata (lua_Object object);
67int lua_getbindatasize (lua_Object object);
66void *lua_getuserdata (lua_Object object); 68void *lua_getuserdata (lua_Object object);
67 69
68void lua_pushnil (void); 70void lua_pushnil (void);
69void lua_pushnumber (float n); 71void lua_pushnumber (float n);
70void lua_pushstring (char *s); 72void lua_pushstring (char *s);
71void lua_pushcfunction (lua_CFunction fn); 73void lua_pushcfunction (lua_CFunction fn);
74void lua_pushbinarydata (void *buff, int size, int tag);
72void lua_pushusertag (void *u, int tag); 75void lua_pushusertag (void *u, int tag);
73void lua_pushobject (lua_Object object); 76void lua_pushobject (lua_Object object);
74 77