aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-18 15:16:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-18 15:16:16 -0300
commitb7ed502deaaab48c8794314e8594b0511dfa34d8 (patch)
tree46c27cee965dfe133155f29ec81a784db35a269e /llimits.h
parent58badbab9933e0a50d9b9f3fec78ac50d15d5414 (diff)
downloadlua-b7ed502deaaab48c8794314e8594b0511dfa34d8.tar.gz
lua-b7ed502deaaab48c8794314e8594b0511dfa34d8.tar.bz2
lua-b7ed502deaaab48c8794314e8594b0511dfa34d8.zip
configurable macros should live in llimits.h
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/llimits.h b/llimits.h
index 9f6d6520..4633284b 100644
--- a/llimits.h
+++ b/llimits.h
@@ -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;
78union L_Umaxalign { LUSER_ALIGNMENT_T u; void *s; long l; }; 78union 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