你好,云风,我想你一定因为"chunk has too many syntax levels"这个错误提示所困扰过,我查过所有网络上的文章都无法解决我们公司游戏出现的问题,想请你帮忙看下,详细情况加QQ181967486说吧,很急
lua源代码都不看,还好意思说查过所有网络上的文章,简单搜一下,就知道什么原因- 回复 | (2538) | 菜鸟 | 2012-05-14 05:30:22
可能是有死循环?282 static void enterlevel (LexState *ls) {283 if (++ls->L->nCcalls > LUAI_MAXCCALLS)284 luaX_lexerror(ls, "chunk has too many syntax levels", 0);285 }
/*@@ LUAI_MAXCALLS limits the number of nested calls.** CHANGE it if you need really deep recursive calls. This limit is** arbitrary; its only purpose is to stop infinite recursion before** exhausting memory.*/#define LUAI_MAXCALLS 20000