2
0
Эх сурвалжийг харах

change `#ifdef' for `#if defined'

Roberto Ierusalimschy 20 жил өмнө
parent
commit
03fb3c39d4
2 өөрчлөгдсөн 5 нэмэгдсэн , 5 устгасан
  1. 3 3
      ltests.c
  2. 2 2
      lua.h

+ 3 - 3
ltests.c

@@ -1,5 +1,5 @@
 /*
-** $Id: ltests.c,v 2.20 2005/02/18 12:40:02 roberto Exp roberto $
+** $Id: ltests.c,v 2.21 2005/03/16 16:58:41 roberto Exp roberto $
 ** Internal Module for Debugging of the Lua Implementation
 ** See Copyright Notice in lua.h
 */
@@ -34,7 +34,7 @@
 /*
 ** The whole module only makes sense with LUA_DEBUG on
 */
-#ifdef LUA_DEBUG
+#if defined(LUA_DEBUG)
 
 
 int Trick = 0;
@@ -979,7 +979,7 @@ static int testC (lua_State *L) {
     }
 #endif
     else if EQ("throw") {
-#ifdef __cplusplus
+#if defined(__cplusplus)
 static struct X { int x; } x;
       throw x;
 #else

+ 2 - 2
lua.h

@@ -1,5 +1,5 @@
 /*
-** $Id: lua.h,v 1.202 2005/02/18 12:40:02 roberto Exp roberto $
+** $Id: lua.h,v 1.203 2005/03/22 16:04:29 roberto Exp roberto $
 ** Lua - An Extensible Extension Language
 ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil
 ** http://www.lua.org	mailto:[email protected]
@@ -94,7 +94,7 @@ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
 /*
 ** generic extra include file
 */
-#ifdef LUA_USER_H
+#if defined(LUA_USER_H)
 #include LUA_USER_H
 #endif