better support for extra user space associated with a Lua state

This commit is contained in:
Roberto Ierusalimschy
2014-07-24 11:00:16 -03:00
parent 55a710545c
commit baa0e23456
4 changed files with 23 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: luaconf.h,v 1.209 2014/06/26 18:30:27 roberto Exp roberto $
** $Id: luaconf.h,v 1.210 2014/07/17 13:53:37 roberto Exp roberto $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@@ -210,6 +210,14 @@
/*
@@ LUA_EXTRASPACE defines the size of a raw memory area associated with
** a Lua state with very fast access.
** CHANGE it if you need a different size.
*/
#define LUA_EXTRASPACE (sizeof(void *))
/*
@@ LUA_QL describes how error messages quote program elements.
** CHANGE it if you want a different appearance.