diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-10-24 10:08:15 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-10-24 10:08:15 -0700 |
commit | 4a0822929b20f3a8fc5627d71527871fa7e39f7b (patch) | |
tree | f26471480a43958169f9eb94cefbce62685b1e0d /src | |
parent | e3b1ac2c83c94f3303d3b4504ef458ed24d6992a (diff) | |
download | teliva-4a0822929b20f3a8fc5627d71527871fa7e39f7b.tar.gz |
done reading lua_newstate
Diffstat (limited to 'src')
-rw-r--r-- | src/notes | 9 |
1 files changed, 8 insertions, 1 deletions
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 |