several configuration options that do not change often moved out of

luaconf.h and into more internal files
This commit is contained in:
Roberto Ierusalimschy
2009-12-17 10:26:09 -02:00
parent 2af0d3b459
commit de6fc75d63
10 changed files with 215 additions and 267 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.c,v 2.65 2009/12/14 15:27:30 roberto Exp roberto $
** $Id: lstate.c,v 2.66 2009/12/16 16:42:58 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -25,6 +25,15 @@
#include "ltm.h"
#if !defined(LUAI_GCPAUSE)
#define LUAI_GCPAUSE 162 /* 162% (wait memory to double before next GC) */
#endif
#if !defined(LUAI_GCMUL)
#define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */
#endif
/*
** thread state + extra space
*/