lua

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

commit aa13c591f59f55ea31c14fcc554f8fc96dff67c2
parent 6c8a32217a04f8441fdd9233035e26930f498bf9
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed, 25 May 2011 11:12:04 -0300

avoid use of 'ifdef/ifndef'; use 'defined' instead (simpler and
more powerful)

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

diff --git a/ltests.c b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.116 2011/04/08 19:17:36 roberto Exp roberto $ +** $Id: ltests.c,v 2.117 2011/05/05 16:18:53 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -83,7 +83,7 @@ typedef union Header { } Header; -#ifndef EXTERNMEMCHECK +#if !defined(EXTERNMEMCHECK) /* full memory check */ #define MARKSIZE 16 /* size of marks after each block */ diff --git a/lualib.h b/lualib.h @@ -1,5 +1,5 @@ /* -** $Id: lualib.h,v 1.40 2010/06/10 21:29:47 roberto Exp roberto $ +** $Id: lualib.h,v 1.41 2010/10/25 14:32:36 roberto Exp roberto $ ** Lua standard libraries ** See Copyright Notice in lua.h */ @@ -50,7 +50,7 @@ LUALIB_API void (luaL_openlibs) (lua_State *L); -#ifndef lua_assert +#if !defined(lua_assert) #define lua_assert(x) ((void)0) #endif