Selaa lähdekoodia

libraries may want to use `lua_assert' too...

Roberto Ierusalimschy 21 vuotta sitten
vanhempi
commit
42b74ccf1d
2 muutettua tiedostoa jossa 5 lisäystä ja 7 poistoa
  1. 1 6
      llimits.h
  2. 4 1
      luaconf.h

+ 1 - 6
llimits.h

@@ -1,5 +1,5 @@
 /*
-** $Id: llimits.h,v 1.57 2003/12/01 16:33:30 roberto Exp roberto $
+** $Id: llimits.h,v 1.58 2004/04/30 20:13:38 roberto Exp roberto $
 ** Limits, basic types, and some other `installation-dependent' definitions
 ** See Copyright Notice in lua.h
 */
@@ -63,11 +63,6 @@ typedef LUSER_ALIGNMENT_T L_Umaxalign;
 typedef LUA_UACNUMBER l_uacNumber;
 
 
-#ifndef lua_assert
-#define lua_assert(c)		/* empty */
-#endif
-
-
 #ifndef check_exp
 #define check_exp(c,e)	(e)
 #endif

+ 4 - 1
luaconf.h

@@ -1,5 +1,5 @@
 /*
-** $Id: luaconf.h,v 1.5 2004/06/02 13:24:43 roberto Exp roberto $
+** $Id: luaconf.h,v 1.6 2004/06/02 19:07:55 roberto Exp roberto $
 ** Configuration file for Lua
 ** See Copyright Notice in lua.h
 */
@@ -55,6 +55,9 @@
 /* first index for arrays */
 #define LUA_FIRSTINDEX		1
 
+/* assertions in Lua (mainly for internal debugging) */
+#define lua_assert(c)		/* empty */
+
 /* }====================================================== */