aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-06-23 15:27:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-06-23 15:27:53 -0300
commite81f1841644405845e7de6bd70a0f074cced3d81 (patch)
treefaa59463440da831f60846d4c689289d3fbdcaf9 /lua.h
parent3e4327530835f65d3bc089688bd46f44efcddb57 (diff)
downloadlua-e81f1841644405845e7de6bd70a0f074cced3d81.tar.gz
lua-e81f1841644405845e7de6bd70a0f074cced3d81.tar.bz2
lua-e81f1841644405845e7de6bd70a0f074cced3d81.zip
new #define LUA_COMPAT2_5 to select "compatibility mode".
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/lua.h b/lua.h
index cc5ed897..0b6b1868 100644
--- a/lua.h
+++ b/lua.h
@@ -2,7 +2,7 @@
2** LUA - An Extensible Extension Language 2** LUA - An Extensible Extension Language
3** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil 3** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
4** e-mail: lua@tecgraf.puc-rio.br 4** e-mail: lua@tecgraf.puc-rio.br
5** $Id: lua.h,v 4.9 1997/06/18 21:20:45 roberto Exp roberto $ 5** $Id: lua.h,v 4.10 1997/06/19 18:03:04 roberto Exp roberto $
6*/ 6*/
7 7
8 8
@@ -102,13 +102,18 @@ long lua_collectgarbage (long limit);
102 102
103 103
104 104
105/* If your program has no compatibility problems, you can change 105/* ==========================================================================
106** this to 0 106** for compatibility with old versions. Avoid using these macros/functions
107** If your program does not use any of these, define LUA_COMPAT2_5 to 0
107*/ 108*/
108#if 1
109 109
110/* =============================================================== */ 110#ifndef LUA_COMPAT2_5
111/* for compatibility with old versions. Avoid using these macros/functions */ 111#define LUA_COMPAT2_5 1
112#endif
113
114
115#if LUA_COMPAT2_5
116
112 117
113lua_Object lua_setfallback (char *event, lua_CFunction fallback); 118lua_Object lua_setfallback (char *event, lua_CFunction fallback);
114 119