1
0
mirror of https://github.com/lua/lua.git synced 2025-01-14 05:43:00 +08:00

change #ifdef' for #if defined'

This commit is contained in:
Roberto Ierusalimschy 2005-03-23 14:51:11 -03:00
parent 8af1ca02e0
commit 03fb3c39d4
2 changed files with 5 additions and 5 deletions

View File

@ -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

4
lua.h
View File

@ -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