From 4a0822929b20f3a8fc5627d71527871fa7e39f7b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 24 Oct 2021 10:08:15 -0700 Subject: done reading lua_newstate --- src/notes | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/notes b/src/notes index ff25625..4a4487b 100644 --- a/src/notes +++ b/src/notes @@ -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 -- cgit 1.4.1-2-gfad0