diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-08 15:18:57 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-08 15:18:57 -0300 |
| commit | 7ade1557627cf3f09c23c892ee227b7386f28414 (patch) | |
| tree | ef534e61b85351c4edc5debb5d6f6a580e8fc5da /llimits.h | |
| parent | d827e96f33056bcc0daca0c04b3273604f9d5986 (diff) | |
| download | lua-7ade1557627cf3f09c23c892ee227b7386f28414.tar.gz lua-7ade1557627cf3f09c23c892ee227b7386f28414.tar.bz2 lua-7ade1557627cf3f09c23c892ee227b7386f28414.zip | |
Janitorial work on casts
Diffstat (limited to 'llimits.h')
| -rw-r--r-- | llimits.h | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -137,12 +137,15 @@ typedef LUAI_UACINT l_uacInt; | |||
| 137 | #define cast_voidp(i) cast(void *, (i)) | 137 | #define cast_voidp(i) cast(void *, (i)) |
| 138 | #define cast_num(i) cast(lua_Number, (i)) | 138 | #define cast_num(i) cast(lua_Number, (i)) |
| 139 | #define cast_int(i) cast(int, (i)) | 139 | #define cast_int(i) cast(int, (i)) |
| 140 | #define cast_short(i) cast(short, (i)) | ||
| 140 | #define cast_uint(i) cast(unsigned int, (i)) | 141 | #define cast_uint(i) cast(unsigned int, (i)) |
| 141 | #define cast_byte(i) cast(lu_byte, (i)) | 142 | #define cast_byte(i) cast(lu_byte, (i)) |
| 142 | #define cast_uchar(i) cast(unsigned char, (i)) | 143 | #define cast_uchar(i) cast(unsigned char, (i)) |
| 143 | #define cast_char(i) cast(char, (i)) | 144 | #define cast_char(i) cast(char, (i)) |
| 144 | #define cast_charp(i) cast(char *, (i)) | 145 | #define cast_charp(i) cast(char *, (i)) |
| 145 | #define cast_sizet(i) cast(size_t, (i)) | 146 | #define cast_sizet(i) cast(size_t, (i)) |
| 147 | #define cast_Integer(i) cast(lua_Integer, (i)) | ||
| 148 | #define cast_Inst(i) cast(Instruction, (i)) | ||
| 146 | 149 | ||
| 147 | 150 | ||
| 148 | /* cast a signed lua_Integer to lua_Unsigned */ | 151 | /* cast a signed lua_Integer to lua_Unsigned */ |
