c/lua:coroutine continuation

This commit is contained in:
luoliwoshang
2024-08-25 15:31:10 +08:00
parent cf8a170133
commit 3e932c9bdf
4 changed files with 120 additions and 7 deletions

21
c/lua/luaconf.go Normal file
View File

@@ -0,0 +1,21 @@
package lua
/*
** {==================================================================
** Macros that affect the API and must be stable (that is, must be the
** same when you compile Lua and when you compile code that links to
** Lua).
** =====================================================================
*/
/*
@@ LUAI_MAXSTACK limits the size of the Lua stack.
** CHANGE it if you need a different limit. This limit is arbitrary;
** its only purpose is to stop Lua from consuming unlimited stack
** space (and to reserve some numbers for pseudo-indices).
** (It must fit into max(size_t)/32 and max(int)/2.)
*/
const (
MAXSTACK = 1000000
)