aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-03-07 13:19:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-03-07 13:19:00 -0300
commitcd12410195e092f966db2c9e524c2cd5fd09fa1a (patch)
tree5c7eb74fe79df2cb5fb65969bfc0fda23a11d9e6 /llimits.h
parentc5bb3643ab28d5309971f1960dd5222b9c81fd3a (diff)
downloadlua-cd12410195e092f966db2c9e524c2cd5fd09fa1a.tar.gz
lua-cd12410195e092f966db2c9e524c2cd5fd09fa1a.tar.bz2
lua-cd12410195e092f966db2c9e524c2cd5fd09fa1a.zip
new macro 'cast_void'
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llimits.h b/llimits.h
index ec22f8c4..6e31a737 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.109 2013/08/21 19:02:30 roberto Exp roberto $ 2** $Id: llimits.h,v 1.110 2014/02/26 12:38:43 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*/
@@ -106,6 +106,7 @@ typedef LUAI_UACNUMBER l_uacNumber;
106 106
107#define cast(t, exp) ((t)(exp)) 107#define cast(t, exp) ((t)(exp))
108 108
109#define cast_void(i) cast(void, (i))
109#define cast_byte(i) cast(lu_byte, (i)) 110#define cast_byte(i) cast(lu_byte, (i))
110#define cast_num(i) cast(lua_Number, (i)) 111#define cast_num(i) cast(lua_Number, (i))
111#define cast_int(i) cast(int, (i)) 112#define cast_int(i) cast(int, (i))