aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-17 10:53:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-17 10:53:37 -0300
commit1aa4f69b51a92dc4f5c9d35925b9977d35650679 (patch)
treed63d6534a52452d1c9f4f0c0e6210f4c0435f769 /luaconf.h
parent8bb272a3e3d0693a1d587cfa3469153978ae617f (diff)
downloadlua-1aa4f69b51a92dc4f5c9d35925b9977d35650679.tar.gz
lua-1aa4f69b51a92dc4f5c9d35925b9977d35650679.tar.bz2
lua-1aa4f69b51a92dc4f5c9d35925b9977d35650679.zip
new type 'lua_Ctx' for continuation-function contexts (to allow type
to be configurable)
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/luaconf.h b/luaconf.h
index 65ee1eff..b477319b 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -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** {==================================================================