diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-10-07 17:45:19 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-10-07 17:45:19 -0300 |
commit | 217e67cb224cbb9bd68a1bce7454b60d50894f79 (patch) | |
tree | dfe4ec94dbbc36707699f6e01cbeff62d8871041 /llimits.h | |
parent | 9bbfe9f3fde5225bfa441f9d26b84544cc6c9b6d (diff) | |
download | lua-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.h | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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 | */ |