Estoy casi seguro, podrías aumentar ese número (8000
) cambiando LUAI_MAXCSTACK
valor en el luaconf.h
de su entorno y reconstruirlo (ambiente Lua).
El predeterminado es, como ya habrás notado:
/*
@@ LUAI_MAXCSTACK limits the number of Lua stack slots that a C function
@* can use.
** CHANGE it if you need lots of (Lua) stack space for your C
** functions. This limit is arbitrary; its only purpose is to stop C
** functions to consume unlimited stack space. (must be smaller than
** -LUA_REGISTRYINDEX)
*/
#define LUAI_MAXCSTACK 8000
Solo que parece un poco pornografía.
¿Qué tal usar una tabla e iterar a través de table.concat()
? trozos de <=8000
llaves?