diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-04-25 18:15:37 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-04-25 18:15:37 -0300 |
commit | a80a2b5e561b50c1f64e96c3692614611a325aba (patch) | |
tree | a6db8cfe500ef9049bfffdf5f9b6f6c925d74968 /llimits.h | |
parent | bb1851ce98e80ef9fadd9d02510c3e8f0a6569f6 (diff) | |
download | lua-a80a2b5e561b50c1f64e96c3692614611a325aba.tar.gz lua-a80a2b5e561b50c1f64e96c3692614611a325aba.tar.bz2 lua-a80a2b5e561b50c1f64e96c3692614611a325aba.zip |
new cast macros for lua_Integer and lua_Unsigned
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.102 2013/01/29 16:00:40 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.103 2013/02/20 14:08:56 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 | */ |
@@ -96,6 +96,8 @@ typedef LUAI_UACNUMBER l_uacNumber; | |||
96 | #define cast_num(i) cast(lua_Number, (i)) | 96 | #define cast_num(i) cast(lua_Number, (i)) |
97 | #define cast_int(i) cast(int, (i)) | 97 | #define cast_int(i) cast(int, (i)) |
98 | #define cast_uchar(i) cast(unsigned char, (i)) | 98 | #define cast_uchar(i) cast(unsigned char, (i)) |
99 | #define cast_integer(i) cast(lua_Integer, (i)) | ||
100 | #define cast_unsigned(i) cast(lua_Unsigned, (i)) | ||
99 | 101 | ||
100 | 102 | ||
101 | /* | 103 | /* |