done reading lua_newstate

This commit is contained in:
Kartik K. Agaram 2021-10-24 10:08:15 -07:00
parent e3b1ac2c83
commit 4a0822929b
1 changed files with 8 additions and 1 deletions

View File

@ -6,7 +6,14 @@ typedef struct LG {
lua_State:
&{Value; int tt} stack, stack_last, base, top
GCObject* next
byte tt # type == THREAD
initializing a lua_State (lua_newstate)
allocate space (including for globals)
next = NULL
stack = NULL
== todo stack
lua_newstate
where are stack_last/base/top initialized?
lua_State's stack