diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-18 15:16:16 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-18 15:16:16 -0300 |
commit | b7ed502deaaab48c8794314e8594b0511dfa34d8 (patch) | |
tree | 46c27cee965dfe133155f29ec81a784db35a269e | |
parent | 58badbab9933e0a50d9b9f3fec78ac50d15d5414 (diff) | |
download | lua-b7ed502deaaab48c8794314e8594b0511dfa34d8.tar.gz lua-b7ed502deaaab48c8794314e8594b0511dfa34d8.tar.bz2 lua-b7ed502deaaab48c8794314e8594b0511dfa34d8.zip |
configurable macros should live in llimits.h
-rw-r--r-- | llimits.h | 17 | ||||
-rw-r--r-- | lobject.h | 17 |
2 files changed, 17 insertions, 17 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.39 2002/03/07 18:11:51 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.40 2002/03/14 18:01:52 roberto Exp roberto $ |
3 | ** Limits, basic types, and some other `installation-dependent' definitions | 3 | ** Limits, basic types, and some other `installation-dependent' definitions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -78,6 +78,21 @@ typedef unsigned char lu_byte; | |||
78 | union L_Umaxalign { LUSER_ALIGNMENT_T u; void *s; long l; }; | 78 | union L_Umaxalign { LUSER_ALIGNMENT_T u; void *s; long l; }; |
79 | 79 | ||
80 | 80 | ||
81 | #ifndef lua_assert | ||
82 | #define lua_assert(c) /* empty */ | ||
83 | #endif | ||
84 | |||
85 | |||
86 | #ifndef UNUSED | ||
87 | #define UNUSED(x) ((void)(x)) /* to avoid warnings */ | ||
88 | #endif | ||
89 | |||
90 | |||
91 | #ifndef cast | ||
92 | #define cast(t, exp) ((t)(exp)) | ||
93 | #endif | ||
94 | |||
95 | |||
81 | 96 | ||
82 | /* | 97 | /* |
83 | ** type for virtual-machine instructions | 98 | ** type for virtual-machine instructions |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.125 2002/03/05 12:42:47 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.126 2002/03/11 12:45:00 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -12,21 +12,6 @@ | |||
12 | #include "lua.h" | 12 | #include "lua.h" |
13 | 13 | ||
14 | 14 | ||
15 | #ifndef lua_assert | ||
16 | #define lua_assert(c) /* empty */ | ||
17 | #endif | ||
18 | |||
19 | |||
20 | #ifndef UNUSED | ||
21 | #define UNUSED(x) ((void)(x)) /* to avoid warnings */ | ||
22 | #endif | ||
23 | |||
24 | |||
25 | #ifndef cast | ||
26 | #define cast(t, exp) ((t)(exp)) | ||
27 | #endif | ||
28 | |||
29 | |||
30 | /* tags for values visible from Lua */ | 15 | /* tags for values visible from Lua */ |
31 | #define NUM_TAGS 6 | 16 | #define NUM_TAGS 6 |
32 | 17 | ||