aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-10-07 17:45:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-10-07 17:45:19 -0300
commit217e67cb224cbb9bd68a1bce7454b60d50894f79 (patch)
treedfe4ec94dbbc36707699f6e01cbeff62d8871041 /llimits.h
parent9bbfe9f3fde5225bfa441f9d26b84544cc6c9b6d (diff)
downloadlua-217e67cb224cbb9bd68a1bce7454b60d50894f79.tar.gz
lua-217e67cb224cbb9bd68a1bce7454b60d50894f79.tar.bz2
lua-217e67cb224cbb9bd68a1bce7454b60d50894f79.zip
new type 'l_noret' for function that do not return
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/llimits.h b/llimits.h
index d9445501..d0be3ab5 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.91 2011/09/13 17:39:23 roberto Exp roberto $ 2** $Id: llimits.h,v 1.92 2011/09/30 12:46:06 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*/
@@ -97,6 +97,19 @@ typedef LUAI_UACNUMBER l_uacNumber;
97 97
98 98
99/* 99/*
100** non-return type
101*/
102#if defined(__GNUC__)
103#define l_noret void __attribute__((noreturn))
104#elif defined(_MSC_VER)
105#define l_noret void __declspec(noreturn)
106#else
107#define l_noret void
108#endif
109
110
111
112/*
100** maximum depth for nested C calls and syntactical nested non-terminals 113** maximum depth for nested C calls and syntactical nested non-terminals
101** in a program. (Value must fit in an unsigned short int.) 114** in a program. (Value must fit in an unsigned short int.)
102*/ 115*/