lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 03fb3c39d4f3a60367558ee357cbb9a26f01bc2b
parent 8af1ca02e00e1b35254fadd583b626bfc8c27dd8
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed, 23 Mar 2005 14:50:49 -0300

change `#ifdef' for `#if defined'

Diffstat:
Mltests.c | 6+++---
Mlua.h | 4++--
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/ltests.c b/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 diff --git a/lua.h b/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:info@lua.org @@ -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