aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-01-03 15:28:58 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-01-03 15:28:58 -0200
commit34df9976a9fe9a94a4ee96d7ff0ebceac025172d (patch)
treed9cd1e01e2b453bff0770c93dedd26bd4ee0237b
parentcfaa8fbf1dee6757af90f0612eb9f96a64e6a61e (diff)
downloadlua-34df9976a9fe9a94a4ee96d7ff0ebceac025172d.tar.gz
lua-34df9976a9fe9a94a4ee96d7ff0ebceac025172d.tar.bz2
lua-34df9976a9fe9a94a4ee96d7ff0ebceac025172d.zip
some compatibility macros
-rw-r--r--lauxlib.h9
-rw-r--r--lua.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/lauxlib.h b/lauxlib.h
index fd9d1f53..92f8b5d6 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -102,6 +102,15 @@ LUALIB_API void luaL_pushresult (luaL_Buffer *B);
102/* }====================================================== */ 102/* }====================================================== */
103 103
104 104
105
106/*
107** Compatibility macros
108*/
109
110#define luaL_checktype luaL_check_type
111#define luaL_checkany luaL_check_any
112
113
105#endif 114#endif
106 115
107 116
diff --git a/lua.h b/lua.h
index 1ddacf33..ed779771 100644
--- a/lua.h
+++ b/lua.h
@@ -244,6 +244,8 @@ LUA_API int lua_getweakmode (lua_State *L, int index);
244 244
245LUA_API void lua_pushupvalues (lua_State *L); 245LUA_API void lua_pushupvalues (lua_State *L);
246 246
247#define lua_isnull lua_isnone
248
247 249
248/* compatibility with ref system */ 250/* compatibility with ref system */
249 251