aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-09 16:16:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-09 16:16:57 -0300
commite238efc5367a8d88757dd84df0683e1d8d9f9211 (patch)
treec460226a60d7598193fa4fe87d1736d80bd5bfab /lua.h
parentfdd04e7a7f624dad1a1443e08193241dea935287 (diff)
downloadlua-e238efc5367a8d88757dd84df0683e1d8d9f9211.tar.gz
lua-e238efc5367a8d88757dd84df0683e1d8d9f9211.tar.bz2
lua-e238efc5367a8d88757dd84df0683e1d8d9f9211.zip
default now is multi-state
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lua.h b/lua.h
index f5d2e0ce..429f6586 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.55 2000/06/30 19:17:08 roberto Exp roberto $ 2** $Id: lua.h,v 1.56 2000/08/07 18:39:16 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension Language
4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil 4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
5** e-mail: lua@tecgraf.puc-rio.br 5** e-mail: lua@tecgraf.puc-rio.br
@@ -16,7 +16,7 @@
16#include <stddef.h> 16#include <stddef.h>
17 17
18 18
19#define LUA_VERSION "Lua 4.0 (alpha)" 19#define LUA_VERSION "Lua 4.0 (beta)"
20#define LUA_COPYRIGHT "Copyright (C) 1994-2000 TeCGraf, PUC-Rio" 20#define LUA_COPYRIGHT "Copyright (C) 1994-2000 TeCGraf, PUC-Rio"
21#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" 21#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo"
22 22
@@ -137,7 +137,7 @@ long lua_collectgarbage (lua_State *L, long limit);
137** =============================================================== 137** ===============================================================
138*/ 138*/
139 139
140#ifdef LUA_REENTRANT 140#ifndef LUA_SINGLESTATE
141 141
142#define lua_call(L,name) lua_callfunction(L, lua_getglobal(L, name)) 142#define lua_call(L,name) lua_callfunction(L, lua_getglobal(L, name))
143#define lua_pushref(L,ref) lua_pushobject(L, lua_getref(L, ref)) 143#define lua_pushref(L,ref) lua_pushobject(L, lua_getref(L, ref))
@@ -161,7 +161,7 @@ long lua_collectgarbage (lua_State *L, long limit);
161 161
162 162
163 163
164#ifndef LUA_REENTRANT 164#ifdef LUA_SINGLESTATE
165/* 165/*
166** {============================================================== 166** {==============================================================
167** Macros for single-state use 167** Macros for single-state use
@@ -248,7 +248,7 @@ extern lua_State *lua_state;
248lua_Object lua_rawgetglobal (lua_State *L, const char *name); 248lua_Object lua_rawgetglobal (lua_State *L, const char *name);
249void lua_rawsetglobal (lua_State *L, const char *name);/* In: value */ 249void lua_rawsetglobal (lua_State *L, const char *name);/* In: value */
250 250
251#ifndef LUA_REENTRANT 251#ifdef LUA_SINGLESTATE
252#define lua_rawgetglobal(name) (lua_rawgetglobal(lua_state, name)) 252#define lua_rawgetglobal(name) (lua_rawgetglobal(lua_state, name))
253#define lua_rawsetglobal(name) (lua_rawsetglobal(lua_state, name)) 253#define lua_rawsetglobal(name) (lua_rawsetglobal(lua_state, name))
254#endif 254#endif