diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-25 11:12:28 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-25 11:12:28 -0300 |
| commit | aa13c591f59f55ea31c14fcc554f8fc96dff67c2 (patch) | |
| tree | 4dda4949c1b7b783b1a847adfffa222890a07b3e | |
| parent | 6c8a32217a04f8441fdd9233035e26930f498bf9 (diff) | |
| download | lua-aa13c591f59f55ea31c14fcc554f8fc96dff67c2.tar.gz lua-aa13c591f59f55ea31c14fcc554f8fc96dff67c2.tar.bz2 lua-aa13c591f59f55ea31c14fcc554f8fc96dff67c2.zip | |
avoid use of 'ifdef/ifndef'; use 'defined' instead (simpler and
more powerful)
| -rw-r--r-- | ltests.c | 4 | ||||
| -rw-r--r-- | lualib.h | 4 |
2 files changed, 4 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 2.116 2011/04/08 19:17:36 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.117 2011/05/05 16:18:53 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -83,7 +83,7 @@ typedef union Header { | |||
| 83 | } Header; | 83 | } Header; |
| 84 | 84 | ||
| 85 | 85 | ||
| 86 | #ifndef EXTERNMEMCHECK | 86 | #if !defined(EXTERNMEMCHECK) |
| 87 | 87 | ||
| 88 | /* full memory check */ | 88 | /* full memory check */ |
| 89 | #define MARKSIZE 16 /* size of marks after each block */ | 89 | #define MARKSIZE 16 /* size of marks after each block */ |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lualib.h,v 1.40 2010/06/10 21:29:47 roberto Exp roberto $ | 2 | ** $Id: lualib.h,v 1.41 2010/10/25 14:32:36 roberto Exp roberto $ |
| 3 | ** Lua standard libraries | 3 | ** Lua standard libraries |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -50,7 +50,7 @@ LUALIB_API void (luaL_openlibs) (lua_State *L); | |||
| 50 | 50 | ||
| 51 | 51 | ||
| 52 | 52 | ||
| 53 | #ifndef lua_assert | 53 | #if !defined(lua_assert) |
| 54 | #define lua_assert(x) ((void)0) | 54 | #define lua_assert(x) ((void)0) |
| 55 | #endif | 55 | #endif |
| 56 | 56 | ||
