diff options
Diffstat (limited to 'luaconf.h')
| -rw-r--r-- | luaconf.h | 18 |
1 files changed, 17 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.208 2014/06/24 17:02:00 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.209 2014/06/26 18:30:27 roberto Exp roberto $ |
| 3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -254,6 +254,22 @@ | |||
| 254 | #define LUAI_MAXSHORTLEN 40 | 254 | #define LUAI_MAXSHORTLEN 40 |
| 255 | 255 | ||
| 256 | 256 | ||
| 257 | /* | ||
| 258 | @@ LUA_CTXT is the type of the context ('ctx') for continuation functions. | ||
| 259 | @@ It must be a numerical type; Lua will use 'intptr_t' if available. | ||
| 260 | */ | ||
| 261 | #if defined (LUA_USE_C99) | ||
| 262 | #include <stdint.h> | ||
| 263 | #if defined (INTPTR_MAX) /* even in C99 this type is optional */ | ||
| 264 | #define LUA_CTXT intptr_t | ||
| 265 | #endif | ||
| 266 | #endif | ||
| 267 | |||
| 268 | #if !defined(LUA_CTXT) | ||
| 269 | /* default definition (the nearest thing to 'intptr_t' in C89) */ | ||
| 270 | #define LUA_CTXT ptrdiff_t | ||
| 271 | #endif | ||
| 272 | |||
| 257 | 273 | ||
| 258 | /* | 274 | /* |
| 259 | ** {================================================================== | 275 | ** {================================================================== |
