c/lua:extraspace

This commit is contained in:
luoliwoshang
2024-10-04 15:02:18 +08:00
parent 4976e82f0f
commit e2091413ea
3 changed files with 56 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
package lua
import "unsafe"
/*
** {==================================================================
** Macros that affect the API and must be stable (that is, must be the
@@ -20,6 +22,15 @@ const (
MAXSTACK = 1000000
)
/*
@@ 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.
*/
const (
EXTRASPACE = unsafe.Sizeof(uintptr(0))
)
/*
@@ LUA_IDSIZE gives the maximum size for the description of the source
** of a function in debug information.