summaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llimits.h b/llimits.h
index ccffb3dc..fce32902 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.66 2005/08/04 13:37:10 roberto Exp roberto $ 2** $Id: llimits.h,v 1.67 2005/08/24 16:15:49 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*/
@@ -66,6 +66,10 @@ typedef LUAI_UACNUMBER l_uacNumber;
66#define cast(t, exp) ((t)(exp)) 66#define cast(t, exp) ((t)(exp))
67#endif 67#endif
68 68
69#define cast_byte(i) cast(lu_byte, (i))
70#define cast_num(i) cast(lua_Number, (i))
71#define cast_int(i) cast(int, (i))
72
69 73
70 74
71/* 75/*