diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-02-11 09:40:01 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-02-11 09:40:01 -0200 |
commit | 205ee1ec84c0f0e9c2df923fdcfa29207e8e72b3 (patch) | |
tree | 1e2683e673e5fbf2230343df4faac3b252eee38c /lua.h | |
parent | b48847c5fac055f0d6120029f6fe1a50c852a8ac (diff) | |
download | lua-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.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); | |||
63 | float lua_getnumber (lua_Object object); | 63 | float lua_getnumber (lua_Object object); |
64 | char *lua_getstring (lua_Object object); | 64 | char *lua_getstring (lua_Object object); |
65 | lua_CFunction lua_getcfunction (lua_Object object); | 65 | lua_CFunction lua_getcfunction (lua_Object object); |
66 | void *lua_getbinarydata (lua_Object object); | ||
67 | int lua_getbindatasize (lua_Object object); | ||
66 | void *lua_getuserdata (lua_Object object); | 68 | void *lua_getuserdata (lua_Object object); |
67 | 69 | ||
68 | void lua_pushnil (void); | 70 | void lua_pushnil (void); |
69 | void lua_pushnumber (float n); | 71 | void lua_pushnumber (float n); |
70 | void lua_pushstring (char *s); | 72 | void lua_pushstring (char *s); |
71 | void lua_pushcfunction (lua_CFunction fn); | 73 | void lua_pushcfunction (lua_CFunction fn); |
74 | void lua_pushbinarydata (void *buff, int size, int tag); | ||
72 | void lua_pushusertag (void *u, int tag); | 75 | void lua_pushusertag (void *u, int tag); |
73 | void lua_pushobject (lua_Object object); | 76 | void lua_pushobject (lua_Object object); |
74 | 77 | ||