Browse Source

some compatibility macros

Roberto Ierusalimschy 23 years ago
parent
commit
34df9976a9
2 changed files with 11 additions and 0 deletions
  1. 9 0
      lauxlib.h
  2. 2 0
      lua.h

+ 9 - 0
lauxlib.h

@@ -102,6 +102,15 @@ LUALIB_API void luaL_pushresult (luaL_Buffer *B);
 /* }====================================================== */
 /* }====================================================== */
 
 
 
 
+
+/*
+** Compatibility macros
+*/
+
+#define luaL_checktype  luaL_check_type
+#define luaL_checkany   luaL_check_any
+
+
 #endif
 #endif
 
 
 
 

+ 2 - 0
lua.h

@@ -244,6 +244,8 @@ LUA_API int   lua_getweakmode (lua_State *L, int index);
 
 
 LUA_API void lua_pushupvalues (lua_State *L);
 LUA_API void lua_pushupvalues (lua_State *L);
 
 
+#define lua_isnull	lua_isnone
+
 
 
 /* compatibility with ref system */
 /* compatibility with ref system */